Browse Source

Merge pull request #17733 from Tirzono/dev

Fix loading glTF ZIP files in the editor
Mr.doob 5 years ago
parent
commit
406a24237d
1 changed files with 1 additions and 1 deletions
  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;
 						var scene = result.scene;
 
 
 						editor.addAnimation( scene, result.animations );
 						editor.addAnimation( scene, result.animations );
-						editor.execute( new AddObjectCommand( scene ) );
+						editor.execute( new AddObjectCommand( editor, scene ) );
 
 
 					} );
 					} );