Skip to content

Commit 901b6c4

Browse files
committed
一部のボーンが移動可能に設定されていても移動が行えない不具合を修正
1 parent 72b4f64 commit 901b6c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mmd_tools/core/pmx/importer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def __createEditBones(self, obj, pmx_bones):
180180
b_bone.tail = b_bone.head + loc
181181

182182
for b_bone, m_bone in zip(editBoneTable, pmx_bones):
183-
if isinstance(m_bone.displayConnection, int) and m_bone.displayConnection >= 0:
183+
if isinstance(m_bone.displayConnection, int)\
184+
and m_bone.displayConnection >= 0\
185+
and not m_bone.isMovable:
184186
t = editBoneTable[m_bone.displayConnection]
185187
if t.parent is not None and t.parent == b_bone:
186188
t.use_connect = True

0 commit comments

Comments
 (0)