Преглед на файлове

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