Browse Source

Set DefaultPosition for dogu drag handle

Some stages like the salon stage in CM3D2 have a default position that
isn't Vector3.zero.
habeebweeb 4 years ago
parent
commit
2544c98e1a

+ 6 - 0
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointOther.cs

@@ -32,6 +32,12 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
     public class DragPointBG : DragPointGeneral
     {
+        public override void Set(Transform myObject)
+        {
+            base.Set(myObject);
+            DefaultPosition = myObject.position;
+        }
+
         protected override void ApplyDragType()
         {
             ApplyProperties(Transforming, Transforming, Rotating);