From 532536bf52da49290ecd406a2757581e52ff21aa Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 27 Mar 2019 15:38:29 +0100 Subject: Fix T61559: show object constraints also when in pose mode, remove warning. This was originally added in 6feddb8b61df, but the warning is quite clumsy and we also don't limit editing object transforms that way. The add constraint button at the top now also indicates if it's for objects or bones, which was not the case before and probably was part of the confusion. If it does still cause issues we can always change back or hide the tab. --- release/scripts/startup/bl_ui/properties_constraint.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_constraint.py') diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index a7ec065cd95..bf34e767f3a 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -974,14 +974,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel): obj = context.object - if obj.type == 'ARMATURE' and obj.mode == '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") - box.operator("wm.properties_context_change", icon='CONSTRAINT_BONE', - text="Go to Bone Constraints tab...").context = 'BONE_CONSTRAINT' - else: - layout.operator_menu_enum("object.constraint_add", "type", text="Add Object Constraint") + layout.operator_menu_enum("object.constraint_add", "type", text="Add Object Constraint") for con in obj.constraints: self.draw_constraint(context, con) -- cgit v1.2.3