Fix T39987: The new "redirect to bone constraints" button at the object constaints tab is wrong in bone edit mode

In edit mode, do as with usual objects - show object constraints!
This commit is contained in:
Bastien Montagne 2014-05-01 21:23:12 +02:00
parent c806a8ce96
commit e2288255fb
Notes: blender-bot 2023-02-14 10:42:37 +01:00
Referenced by issue #39987, The new "redirect to bone constraints" button at the object constaints tab  is wrong in bone edit mode
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel):
obj = context.object
if obj.type == 'ARMATURE' and obj.mode in {'EDIT', 'POSE'}:
if obj.type == 'ARMATURE' and obj.mode in {'POSE'}:
box = layout.box()
box.alert = True # XXX: this should apply to the box background
box.label(icon='INFO', text="Constraints for active bone do not live here")