瀏覽代碼

Simplify pose copying and fix mune

Noticing a theme?

Copying a maid's pose will use the frame binary rather than anm binary
to simplify copying. No need to worry about getting a unique hash code
or setting auto twist.

Mune will be set by accessing the from maid's muneyure
habeebweeb 4 年之前
父節點
當前提交
dc2e8a6e1c
共有 1 個文件被更改,包括 3 次插入6 次删除
  1. 3 6
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/Meido.cs

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

@@ -329,12 +329,9 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         public void CopyPose(Meido fromMeido)
         {
-            byte[] poseBinary = fromMeido.SerializePose();
-            string tag = $"copy_{fromMeido.Maid.status.guid}";
-            Body.CrossFade(tag, poseBinary, false, true, false, 0f);
-            Maid.SetAutoTwistAll(true);
-            Maid.transform.rotation = fromMeido.Maid.transform.rotation;
-            SetPoseMune();
+            GetCacheBoneData().SetFrameBinary(fromMeido.SerializePose(frameBinary: true));
+            SetMune(fromMeido.Body.GetMuneYureL() != 0f, left: true);
+            SetMune(fromMeido.Body.GetMuneYureR() != 0f, left: false);
         }
 
         public void SetMune(bool enabled, bool left = false)