Skip to content

Commit de69240

Browse files
committed
インポートしたモデルのTransform Locksが一部正しくない不具合を修正
1 parent 59c2213 commit de69240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mmd_tools/core/pmx/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __importBones(self):
240240
b_bone.mmd_bone.is_visible = p_bone.visible
241241
b_bone.mmd_bone.is_controllable = p_bone.isControllable
242242
b_bone.mmd_bone.is_tip = (p_bone.displayConnection == -1)
243-
b_bone.bone.hide = b_bone.mmd_bone.is_tip
243+
b_bone.bone.hide = b_bone.mmd_bone.is_tip or not p_bone.visible
244244

245245
if not p_bone.isRotatable:
246246
b_bone.lock_rotation = [True, True, True]
@@ -265,7 +265,7 @@ def __importBones(self):
265265
b_bone.mmd_bone.local_axis_x = p_bone.localCoordinate.x_axis
266266
b_bone.mmd_bone.local_axis_z = p_bone.localCoordinate.z_axis
267267

268-
if len(b_bone.children) == 0:
268+
if b_bone.mmd_bone.is_tip:
269269
b_bone.lock_rotation = [True, True, True]
270270
b_bone.lock_location = [True, True, True]
271271
b_bone.lock_scale = [True, True, True]

0 commit comments

Comments
 (0)