Parcourir la source

Fix for undefined resetBlendWeights method Exception

Removing both THREE.AnimationHandler.play and THREE.AnimationHandler.stop as they include "keyframe animation" in global THREE.AnimationHandler.update routine, which expects resetBlendWeights method that's missing for keyframe animations. I also don't see any use for it, as whole animation lifecycle is in this case handled inside KeyFrameAnimation.

In the end this causes undefined method exceptions in AnimationHandler.js#L208
if used in coonection with both KeyFrameAnimation and AnimationHandler for skinnned meshes.
michax il y a 9 ans
Parent
commit
b21446c055
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. 0 5
      examples/js/loaders/collada/KeyFrameAnimation.js

+ 0 - 5
examples/js/loaders/collada/KeyFrameAnimation.js

@@ -101,9 +101,6 @@ THREE.KeyFrameAnimation.prototype = {
 		}
 
 		this.isPaused = false;
-
-		THREE.AnimationHandler.play( this );
-
 	},
 
 	stop: function () {
@@ -111,8 +108,6 @@ THREE.KeyFrameAnimation.prototype = {
 		this.isPlaying = false;
 		this.isPaused  = false;
 
-		THREE.AnimationHandler.stop( this );
-
 		// reset JIT matrix and remove cache
 
 		for ( var h = 0; h < this.data.hierarchy.length; h ++ ) {