[Bf-blender-cvs] [532536bf52d] master: Fix T61559: show object constraints also when in pose mode, remove warning.

Brecht Van Lommel noreply at git.blender.org
Wed Mar 27 15:42:50 CET 2019


Commit: 532536bf52da49290ecd406a2757581e52ff21aa
Author: Brecht Van Lommel
Date:   Wed Mar 27 15:38:29 2019 +0100
Branches: master
https://developer.blender.org/rB532536bf52da49290ecd406a2757581e52ff21aa

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.

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

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



More information about the Bf-blender-cvs mailing list