浏览代码

Fix dragpoints not being scaled on initialization

Maid drag point's initial scale initialized with the assumption that
the maid's initial scale was Vector3.one.
habeebweeb 4 年之前
父节点
当前提交
5dc94caf33
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/MeidoDragPointManager.cs

+ 2 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/MeidoDragPointManager.cs

@@ -338,6 +338,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             CubeSmallChange += OnCubeSmall;
             InitializeBones();
             InitializeDragPoints();
+            SetDragPointScale(meido.Maid.transform.localScale.x);
         }
 
         private void InitializeDragPoints()
@@ -522,7 +523,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         private void InitializeSpineDragPoint(params Bone[] bones)
         {
-            Vector3 spineDragPointSize = Vector3.one * 0.045f;
+            Vector3 spineDragPointSize = DragPointMeido.boneScale;
             foreach (Bone bone in bones)
             {
                 Transform spine = BoneTransform[bone];