File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -4243,9 +4243,12 @@ THREE.MMDHelper.prototype = {
4243
4243
4244
4244
if ( mixer !== null && this . doAnimation === true ) {
4245
4245
4246
+ // restore/backupBones are workaround
4247
+ // until I make IK, Grant, and Physics Animation plugin
4248
+ this . restoreBones ( mesh ) ;
4249
+
4246
4250
mixer . update ( delta ) ;
4247
4251
4248
- // workaround until I make IK, Grant, and Physics Animation plugin
4249
4252
this . backupBones ( mesh ) ;
4250
4253
4251
4254
}
@@ -4307,13 +4310,6 @@ THREE.MMDHelper.prototype = {
4307
4310
4308
4311
}
4309
4312
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
-
4317
4313
} ,
4318
4314
4319
4315
renderMain : function ( scene , camera ) {
You can’t perform that action at this time.
0 commit comments