Explorar o código

Set DefaultPosition for dogu drag handle

Some stages like the salon stage in CM3D2 have a default position that
isn't Vector3.zero.
habeebweeb %!s(int64=4) %!d(string=hai) anos
pai
achega
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);