[Bf-blender-cvs] [95cc31f] blender-v2.76a-release: Fix error in bone UI

Campbell Barton noreply at git.blender.org
Thu Oct 29 11:40:25 CET 2015


Commit: 95cc31fdcddcd4dd8a0aac74749670e4ac2e4ab8
Author: Campbell Barton
Date:   Sun Oct 25 05:50:40 2015 +1100
Branches: blender-v2.76a-release
https://developer.blender.org/rB95cc31fdcddcd4dd8a0aac74749670e4ac2e4ab8

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 a14e345..33398b3 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