Browse Source

Fix regression with drag points

Added the check for the mouse changing position before initiating drag
again. Was removed for testing for the new method of getting mouse
position.

Also added a check to the head drag point for select mode to prevent the
maid animation from stopping. Selecting the maid's head doesn't change
the pose so stopping the animation is unnecessary.
habeebweeb 4 years ago
parent
commit
1e9d103f79

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPoint.cs

@@ -206,7 +206,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 OnMouseDown();
             }
 
-            if (collider.enabled) Drag();
+            if (collider.enabled && startMousePosition != Utility.MousePosition) Drag();
         }
 
         protected abstract void UpdateDragType();

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/IK/DragPointHead.cs

@@ -74,7 +74,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         protected override void Drag()
         {
-            if (IsIK) return;
+            if (IsIK || CurrentDragType == DragType.Select) return;
 
             if (!(CurrentDragType == DragType.MoveXZ || CurrentDragType == DragType.MoveY) && isPlaying)
             {