浏览代码

Editor: Forgot to clear the scene.

Mr.doob 10 年之前
父节点
当前提交
59de65c0e6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/index.html

+ 2 - 0
editor/index.html

@@ -250,6 +250,8 @@
 					loader.load( hash.substr( 5 ), function ( text ) {
 
 						var json = JSON.parse( text );
+
+						editor.clear();
 						editor.fromJSON( json );
 
 					} );