Browse Source

Fix loading glTF ZIP files in the editor

Sebastiaan ten Pas 5 years ago
parent
commit
bdba8e2af6
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;
 
 						editor.addAnimation( scene, result.animations );
-						editor.execute( new AddObjectCommand( scene ) );
+						editor.execute( new AddObjectCommand( editor, scene ) );
 
 					} );