File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments