未验证 提交 e8f92cab 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #12992 from gero3/patch-6

remove conditions that are always true
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册