Răsfoiți Sursa

Merge branch 'master' into dev

Mr.doob 9 ani în urmă
părinte
comite
c36044a400
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      examples/js/loaders/sea3d/SEA3DLoader.js

+ 2 - 2
examples/js/loaders/sea3d/SEA3DLoader.js

@@ -472,7 +472,7 @@ THREE.SEA3D.Animator = function( clips, mixer ) {
 
 THREE.SEA3D.Animator.prototype.update = function( dt ) {
 
-	this.mixer.update( dt );
+	this.mixer.update( dt || 0 );
 
 	if ( this.currentAnimationAction.paused ) {
 
@@ -1108,7 +1108,7 @@ THREE.SEA3D.AnimationHandler = {
 
 		var index = this.animators.indexOf( animator );
 
-		if ( index !== - 1 ) this.animators.splice( this.animators.indexOf( animator ), 1 );
+		if ( index !== - 1 ) this.animators.splice( index, 1 );
 
 	}