[Bf-blender-cvs] [11c00ca] master: Fix error in bone UI

Campbell Barton noreply at git.blender.org
Sat Oct 24 20:56:58 CEST 2015


Commit: 11c00caddcc1e1c099af8c68b50485b8a00ecea8
Author: Campbell Barton
Date:   Sun Oct 25 05:50:40 2015 +1100
Branches: master
https://developer.blender.org/rB11c00caddcc1e1c099af8c68b50485b8a00ecea8

Fix error in bone UI

===================================================================

M	release/scripts/startup/bl_ui/properties_data_bone.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py
index 2c7f18b..690c22c 100644
--- a/release/scripts/startup/bl_ui/properties_data_bone.py
+++ b/release/scripts/startup/bl_ui/properties_data_bone.py
@@ -220,7 +220,7 @@ class BONE_PT_display(BoneButtonsPanel, Panel):
             col = split.column()
             col.prop(bone, "hide", text="Hide")
             sub = col.column()
-            sub.active = bool(pchan.custom_shape)
+            sub.active = bool(pchan and pchan.custom_shape)
             sub.prop(bone, "show_wire", text="Wireframe")
 
             if pchan:




More information about the Bf-blender-cvs mailing list