Commit: 753f1cf0adf7bca5bf3c10ffb533552af19498ef
Author: Campbell Barton
Date:   Sat Mar 6 13:52:10 2021 +1100
Branches: master
https://developer.blender.org/rB753f1cf0adf7bca5bf3c10ffb533552af19498ef

Cleanup: redundant pose bone assignment

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

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 170d7910339..f3e116ca321 100644
--- a/release/scripts/startup/bl_ui/properties_data_bone.py
+++ b/release/scripts/startup/bl_ui/properties_data_bone.py
@@ -255,17 +255,11 @@ class BONE_PT_display(BoneButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        ob = context.object
         bone = context.bone
-        pchan = None
-
-        if ob and bone:
-            pchan = ob.pose.bones[bone.name]
-        elif bone is None:
+        if bone is None:
             bone = context.edit_bone
 
         if bone:
-
             col = layout.column()
             col.prop(bone, "hide", text="Hide", toggle=False)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to