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

Reapply drag type when changing isIK

habeebweeb преди 4 години
родител
ревизия
20d5acecf7
променени са 1 файла, в които са добавени 13 реда и са изтрити 1 реда
  1. 13 1
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/DragPoint/DragPointOther.cs

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