Browse Source

[player] Implemented generator reset.

badlogic 5 years ago
parent
commit
033703e900
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spine-ts/player/example/generator/index.html

+ 2 - 0
spine-ts/player/example/generator/index.html

@@ -138,7 +138,9 @@ body {
 
 			var newButton = topBar.children[0];
 			newButton.onclick = function() {
+				player.stopRendering();
 				UI.show(dropZone);
+				UI.clear(editor);
 				UI.hide(editor);
 			}
 			var downloadButton = topBar.children[1];