浏览代码

Merge pull request #7589 from michax/Fix-KeyFrameAnimation-Exception

Fix for exception with 1 keyframe animations
Mr.doob 9 年之前
父节点
当前提交
80f1caf9c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/collada/KeyFrameAnimation.js

+ 1 - 1
examples/js/loaders/collada/KeyFrameAnimation.js

@@ -84,7 +84,7 @@ THREE.KeyFrameAnimation.prototype = {
 
 				var keys = this.data.hierarchy[ h ].keys;
 
-				if ( keys.length ) {
+				if ( keys.length > 1 ) {
 
 					node.animationCache.prevKey = keys[ 0 ];
 					node.animationCache.nextKey = keys[ 1 ];