Skip to content

Commit 79f4f7d

Browse files
takahiroxmrdoob
authored andcommitted
Clean Up MMDHelper (mrdoob#9784)
1 parent 43e11a4 commit 79f4f7d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/js/loaders/MMDLoader.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4243,9 +4243,12 @@ THREE.MMDHelper.prototype = {
42434243

42444244
if ( mixer !== null && this.doAnimation === true ) {
42454245

4246+
// restore/backupBones are workaround
4247+
// until I make IK, Grant, and Physics Animation plugin
4248+
this.restoreBones( mesh );
4249+
42464250
mixer.update( delta );
42474251

4248-
// workaround until I make IK, Grant, and Physics Animation plugin
42494252
this.backupBones( mesh );
42504253

42514254
}
@@ -4307,13 +4310,6 @@ THREE.MMDHelper.prototype = {
43074310

43084311
}
43094312

4310-
// workaround until I make IK and Physics Animation plugin
4311-
for ( var i = 0; i < this.meshes.length; i++ ) {
4312-
4313-
this.restoreBones( this.meshes[ i ] );
4314-
4315-
}
4316-
43174313
},
43184314

43194315
renderMain: function ( scene, camera ) {

0 commit comments

Comments
 (0)