浏览代码

Fix gravity handle resetting to wrong position

Initially reset to the world zero but needs to reset to local zero.
habeebweeb 4 年之前
父节点
当前提交
10a5e7709c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointGravity.cs

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