瀏覽代碼

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 9 年之前
父節點
當前提交
b21446c055
共有 1 個文件被更改,包括 0 次插入5 次删除
  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;
 		this.isPaused = false;
-
-		THREE.AnimationHandler.play( this );
-
 	},
 	},
 
 
 	stop: function () {
 	stop: function () {
@@ -111,8 +108,6 @@ THREE.KeyFrameAnimation.prototype = {
 		this.isPlaying = false;
 		this.isPlaying = false;
 		this.isPaused  = false;
 		this.isPaused  = false;
 
 
-		THREE.AnimationHandler.stop( this );
-
 		// reset JIT matrix and remove cache
 		// reset JIT matrix and remove cache
 
 
 		for ( var h = 0; h < this.data.hierarchy.length; h ++ ) {
 		for ( var h = 0; h < this.data.hierarchy.length; h ++ ) {