Преглед изворни кода

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 );
 
 		} );