Browse Source

Reapply drag type when changing isIK

habeebweeb 4 years ago
parent
commit
20d5acecf7

+ 13 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointOther.cs

@@ -7,7 +7,19 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
     internal class DragPointBody : DragPointGeneral
     {
         public bool IsCube = false;
-        public bool IsIK = false;
+        private bool isIK = false;
+        public bool IsIK
+        {
+            get => isIK;
+            set
+            {
+                if (isIK != value)
+                {
+                    isIK = value;
+                    ApplyDragType();
+                }
+            }
+        }
         protected override void ApplyDragType()
         {
             DragType current = CurrentDragType;