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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-09-03 12:27:45 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-09-03 13:47:54 +0300
commita04ac5b52de571335efe55e970f590d309ad1ea8 (patch)
tree86e5f5c0788fbccd726bcb659e9ad9bed7411650 /source/blender/editors/object/object_constraint.c
parent09f966ad16b7aa4e2e8bb3ff8c442b16d1514458 (diff)
Fix T80391: Overrides: wrong check in constraint poll
Condition was flipped, would allow actions on constraints coming from library, but prevented actions on local constraints. Mistake in rBS0b49fdd0ee0. Maniphest Tasks: T80391 Differential Revision: https://developer.blender.org/D8793
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r--source/blender/editors/object/object_constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c
index 70404af6433..e98c7a18361 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -682,7 +682,7 @@ static bool edit_constraint_poll_generic(bContext *C,
}
if (ID_IS_OVERRIDE_LIBRARY(ob) && !is_liboverride_allowed) {
- if ((con == NULL) || (con->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) != 0) {
+ if ((con == NULL) || (con->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) == 0) {
CTX_wm_operator_poll_msg_set(C, "Cannot edit constraints coming from library override");
return false;
}