Browse Source

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 years ago
parent
commit
5dc94caf33

+ 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];