Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-21 00:06:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-21 00:06:10 +0400
commit0b4260a0d8a4620d666321698c3a9bc3480ad7a0 (patch)
tree6ae887ebaeea083918202d713eae5e202673588e /release/scripts/startup/bl_ui/properties_data_bone.py
parent69f352770b782f8bf7bbaad426e5edd13addefe3 (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/scripts/startup/bl_ui/properties_data_bone.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_bone.py4
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()