From a04ac5b52de571335efe55e970f590d309ad1ea8 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 3 Sep 2020 11:27:45 +0200 Subject: 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 --- source/blender/editors/object/object_constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3