From 52be15071f07d375879c19c7d9cc5e4bec2b1f90 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 20 Sep 2024 17:52:41 +0200 Subject: [PATCH] UI: dim the hide_select property whenever the bone is hidden suggestion by @dr.sybren in !127340 --- scripts/startup/bl_ui/properties_data_bone.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_ui/properties_data_bone.py b/scripts/startup/bl_ui/properties_data_bone.py index 2a98a2ec629..ae1642ff538 100644 --- a/scripts/startup/bl_ui/properties_data_bone.py +++ b/scripts/startup/bl_ui/properties_data_bone.py @@ -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)