浏览代码

remove conditions that are always true

gero3 7 年之前
父节点
当前提交
a67575ea40
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      examples/js/loaders/XLoader.js

+ 4 - 7
examples/js/loaders/XLoader.js

@@ -1480,7 +1480,6 @@
 
 
 				var model = _model;
 				var model = _model;
 				var animation = _animation;
 				var animation = _animation;
-				var bindFlag = _isBind ? _isBind : true;
 				if ( ! model ) {
 				if ( ! model ) {
 
 
 					model = this.Meshes[ 0 ];
 					model = this.Meshes[ 0 ];
@@ -1565,16 +1564,14 @@
 					model.geometry.animations = [];
 					model.geometry.animations = [];
 
 
 				}
 				}
-				if ( bindFlag ) {
 
 
-					model.geometry.animations.push( THREE.AnimationClip.parseAnimation( put, model.skeleton.bones ) );
-					if ( ! model.animationMixer ) {
+				model.geometry.animations.push( THREE.AnimationClip.parseAnimation( put, model.skeleton.bones ) );
+				if ( ! model.animationMixer ) {
 
 
-						model.animationMixer = new THREE.AnimationMixer( model );
-
-					}
+					model.animationMixer = new THREE.AnimationMixer( model );
 
 
 				}
 				}
+
 				return put;
 				return put;
 
 
 			}
 			}