Skip to content

Commit 64c0783

Browse files
sunagmrdoob
authored andcommitted
more a bit optimization and usability (mrdoob#8969)
1 parent c2a5c1f commit 64c0783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/loaders/sea3d/SEA3DLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ THREE.SEA3D.Animator = function( clips, mixer ) {
472472

473473
THREE.SEA3D.Animator.prototype.update = function( dt ) {
474474

475-
this.mixer.update( dt );
475+
this.mixer.update( dt || 0 );
476476

477477
if ( this.currentAnimationAction.paused ) {
478478

@@ -1104,7 +1104,7 @@ THREE.SEA3D.AnimationHandler = {
11041104

11051105
var index = this.animators.indexOf( animator );
11061106

1107-
if ( index !== - 1 ) this.animators.splice( this.animators.indexOf( animator ), 1 );
1107+
if ( index !== - 1 ) this.animators.splice( index, 1 );
11081108

11091109
}
11101110

0 commit comments

Comments
 (0)