Przeglądaj źródła

Set custom pose mune properly

Custom anm binaries are saved with both use_bust keys set to true. MPS
did not set the mune appropriately for custom poses and resulted in mune
information being lost when applying the pose.
habeebweeb 4 lat temu
rodzic
commit
a2cf46cf14

+ 3 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/Meido.cs

@@ -305,6 +305,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                     Utility.LogWarning($"{poseFilename}: Could not apply pose because {e.Message}");
                     return;
                 }
+                SetMune(false, left: true);
+                SetMune(false, left: false);
             }
             else
             {
@@ -319,10 +321,10 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                     Maid.GetAnimation()[pose].time = float.Parse(poseComponents[1]);
                     Maid.GetAnimation()[pose].speed = 0f;
                 }
+                SetPoseMune();
             }
 
             Maid.SetAutoTwistAll(true);
-            SetPoseMune();
         }
 
         public void CopyPose(Meido fromMeido)