diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-21 00:06:10 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-21 00:06:10 +0400 |
commit | 0b4260a0d8a4620d666321698c3a9bc3480ad7a0 (patch) | |
tree | 6ae887ebaeea083918202d713eae5e202673588e /release | |
parent | 69f352770b782f8bf7bbaad426e5edd13addefe3 (diff) |
Patch #30611: grey out bone show wireframe option if no custom shape is set,
since it only has an effect in that case. Patch by Sebastian Nell.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_bone.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py index 807e5e63bc5..10c4c1fdd04 100644 --- a/release/scripts/startup/bl_ui/properties_data_bone.py +++ b/release/scripts/startup/bl_ui/properties_data_bone.py @@ -206,8 +206,10 @@ class BONE_PT_display(BoneButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(bone, "show_wire", text="Wireframe") col.prop(bone, "hide", text="Hide") + sub = col.column() + sub.active = bool(pchan.custom_shape) + sub.prop(bone, "show_wire", text="Wireframe") if pchan: col = split.column() |