瀏覽代碼

Merge pull request #20744 from Mugen87/dev

Editor: Clean up.
Michael Herzog 4 年之前
父節點
當前提交
23d4ad8e73
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      editor/js/Menubar.File.js

+ 1 - 3
editor/js/Menubar.File.js

@@ -483,9 +483,7 @@ function MenubarFile( editor ) {
 
 		scene.traverse( function ( object ) {
 
-			var objectAnimations = editor.animations[ object.uuid ];
-
-			if ( objectAnimations !== undefined ) animations.push( ... objectAnimations );
+			animations.push( ... object.animations );
 
 		} );