Skip to content

Commit 19bafeb

Browse files
committed
Editor: Animation code clean up.
1 parent 7605a75 commit 19bafeb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

editor/js/Editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var Editor = function () {
9494
this.scripts = {};
9595

9696
this.animations = {};
97-
this.animationMixer = new THREE.AnimationMixer( this.scene );
97+
this.mixer = new THREE.AnimationMixer( this.scene );
9898

9999
this.selected = null;
100100
this.helpers = {};
@@ -468,7 +468,7 @@ Editor.prototype = {
468468
this.materials = {};
469469
this.textures = {};
470470
this.scripts = {};
471-
471+
472472
this.animations = {};
473473
this.animationMixer.stopAllAction();
474474

editor/js/Sidebar.Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Sidebar.Animation = function ( editor ) {
66

77
var signals = editor.signals;
8-
var mixer = editor.animationMixer;
8+
var mixer = editor.mixer;
99

1010
var actions = {};
1111

editor/js/Viewport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,11 +527,11 @@ var Viewport = function ( editor ) {
527527

528528
requestAnimationFrame( animate );
529529

530-
var mixer = editor.animationMixer;
530+
var mixer = editor.mixer;
531531

532532
if ( mixer.stats.actions.inUse > 0 ) {
533533

534-
editor.animationMixer.update( ( time - prevTime ) / 1000 );
534+
mixer.update( ( time - prevTime ) / 1000 );
535535
render();
536536

537537
}

0 commit comments

Comments
 (0)