UI: dim the hide_select property whenever the bone is hidden

suggestion by @dr.sybren in !127340
This commit is contained in:
Philipp Oeser
2024-09-20 17:52:41 +02:00
parent b1fc786653
commit 52be15071f

View File

@@ -324,7 +324,9 @@ class BONE_PT_display(BoneButtonsPanel, Panel):
col = layout.column()
col.prop(bone, "hide", text="Hide", toggle=False)
col.prop(bone, "hide_select", invert_checkbox=True)
hide_select_sub = col.column()
hide_select_sub.active = not bone.hide
hide_select_sub.prop(bone, "hide_select", invert_checkbox=True)
# Figure out the pose bone.
ob = context.object
@@ -354,7 +356,9 @@ class BONE_PT_display(BoneButtonsPanel, Panel):
col = layout.column()
col.prop(bone, "hide", text="Hide", toggle=False)
col.prop(bone, "hide_select", invert_checkbox=True)
hide_select_sub = col.column()
hide_select_sub.active = not bone.hide
hide_select_sub.prop(bone, "hide_select", invert_checkbox=True)
layout.prop(bone.color, "palette", text="Bone Color")
self.draw_bone_color_ui(layout, bone.color)