[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45038] trunk/blender/release/scripts/ startup/bl_ui/properties_data_bone.py: Patch #30611: grey out bone show wireframe option if no custom shape is set,
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Mar 20 21:06:12 CET 2012
Revision: 45038
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45038
Author: blendix
Date: 2012-03-20 20:06:10 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py 2012-03-20 19:56:45 UTC (rev 45037)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_bone.py 2012-03-20 20:06:10 UTC (rev 45038)
@@ -206,8 +206,10 @@
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()
More information about the Bf-blender-cvs
mailing list