Cleanup: redundant pose bone assignment

This commit is contained in:
Campbell Barton 2021-03-06 13:52:10 +11:00
parent b22b037229
commit 753f1cf0ad
1 changed files with 1 additions and 7 deletions

View File

@ -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)