Browse Source

Merge pull request #17733 from Tirzono/dev

Fix loading glTF ZIP files in the editor
Mr.doob 6 năm trước cách đây
mục cha
commit
406a24237d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/js/Loader.js

+ 1 - 1
editor/js/Loader.js

@@ -605,7 +605,7 @@ var Loader = function ( editor ) {
 						var scene = result.scene;
 
 						editor.addAnimation( scene, result.animations );
-						editor.execute( new AddObjectCommand( scene ) );
+						editor.execute( new AddObjectCommand( editor, scene ) );
 
 					} );