Jelajahi Sumber

Fix gravity handle resetting to wrong position

Initially reset to the world zero but needs to reset to local zero.
habeebweeb 4 tahun lalu
induk
melakukan
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);