瀏覽代碼

Fix leg dragpoint not functioning properly

Leg dragpoint requires thigh transform to move leg freely without being
restricted to just the foot and calf
habeebweeb 4 年之前
父節點
當前提交
54d066cc5a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/IK/DragPointChain.cs

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Meido/IK/DragPointChain.cs

@@ -27,7 +27,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 lower.parent,
                 lower
             };
-            if (lower.name.EndsWith("Hand")) ikChain[0] = ikChain[0].parent;
+            if (this.isLower) ikChain[0] = ikChain[0].parent;
         }
 
         private void InitializeRotation()