|
@@ -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;
|
|
|
|
|
|
}
|
|
}
|