فهرست منبع

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 سال پیش
والد
کامیت
2544c98e1a
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointOther.cs

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