소스 검색

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 ) {
 					loader.load( hash.substr( 5 ), function ( text ) {
 
 
 						var json = JSON.parse( text );
 						var json = JSON.parse( text );
+
+						editor.clear();
 						editor.fromJSON( json );
 						editor.fromJSON( json );
 
 
 					} );
 					} );