소스 검색

Merge branch 'master' into dev

Mr.doob 9 년 전
부모
커밋
c36044a400
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 );
 
 	}