Explorar o código

Fix gravity handle resetting to wrong position

Initially reset to the world zero but needs to reset to local zero.
habeebweeb %!s(int64=4) %!d(string=hai) anos
pai
achega
10a5e7709c

+ 2 - 0
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointGravity.cs

@@ -53,6 +53,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             gameObject.SetActive(false);
         }
 
+        protected override void ResetPosition() => Control.transform.localPosition = DefaultPosition;
+
         protected override void ApplyDragType()
         {
             ApplyProperties(Moving, Moving, false);