Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-27 17:38:29 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-27 17:41:06 +0300
commit532536bf52da49290ecd406a2757581e52ff21aa (patch)
tree7d15b979440a2c308e54f4082c705477a22e8406 /release/scripts/startup/bl_ui/properties_constraint.py
parent00bdb5cdf08f44b1580c904b80bb510beb89e591 (diff)
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py9
1 files changed, 1 insertions, 8 deletions
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)