[Bf-blender-cvs] [a04ac5b52de] master: Fix T80391: Overrides: wrong check in constraint poll

Philipp Oeser noreply at git.blender.org
Thu Sep 3 12:52:58 CEST 2020


Commit: a04ac5b52de571335efe55e970f590d309ad1ea8
Author: Philipp Oeser
Date:   Thu Sep 3 11:27:45 2020 +0200
Branches: master
https://developer.blender.org/rBa04ac5b52de571335efe55e970f590d309ad1ea8

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

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

M	source/blender/editors/object/object_constraint.c

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

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;
     }



More information about the Bf-blender-cvs mailing list