浏览代码

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