Browse Source

remove conditions that are always true

gero3 7 năm trước cách đây
mục cha
commit
a67575ea40
1 tập tin đã thay đổi với 4 bổ sung7 xóa
  1. 4 7
      examples/js/loaders/XLoader.js

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

@@ -1480,7 +1480,6 @@
 
 				var model = _model;
 				var animation = _animation;
-				var bindFlag = _isBind ? _isBind : true;
 				if ( ! model ) {
 
 					model = this.Meshes[ 0 ];
@@ -1565,16 +1564,14 @@
 					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;
 
 			}