Pārlūkot izejas kodu

Merge branch 'blending-take2' of https://github.com/insominx/three.js into dev

Mr.doob 11 gadi atpakaļ
vecāks
revīzija
a44a02df71
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      src/extras/animation/Animation.js

+ 2 - 3
src/extras/animation/Animation.js

@@ -32,11 +32,10 @@ THREE.Animation.prototype.play = function ( startTime, weight ) {
 	this.weight = weight !== undefined ? weight: 1;
 	this.weight = weight !== undefined ? weight: 1;
 
 
 	this.isPlaying = true;
 	this.isPlaying = true;
-	this.reset();
-	this.update( 0 );
-
 	this.isPaused = false;
 	this.isPaused = false;
 
 
+	this.reset();
+
 	THREE.AnimationHandler.addToUpdate( this );
 	THREE.AnimationHandler.addToUpdate( this );
 
 
 };
 };