소스 검색

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