提交 79f4f7df 编写于 作者: T Takahiro 提交者: Mr.doob

Clean Up MMDHelper (#9784)

上级 43e11a45
......@@ -4243,9 +4243,12 @@ THREE.MMDHelper.prototype = {
if ( mixer !== null && this.doAnimation === true ) {
// restore/backupBones are workaround
// until I make IK, Grant, and Physics Animation plugin
this.restoreBones( mesh );
mixer.update( delta );
// workaround until I make IK, Grant, and Physics Animation plugin
this.backupBones( mesh );
}
......@@ -4307,13 +4310,6 @@ THREE.MMDHelper.prototype = {
}
// workaround until I make IK and Physics Animation plugin
for ( var i = 0; i < this.meshes.length; i++ ) {
this.restoreBones( this.meshes[ i ] );
}
},
renderMain: function ( scene, camera ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册