[Bf-blender-cvs] [9385d887d17] master: Fix bad poll function for constraints in liboverrides.

Bastien Montagne noreply at git.blender.org
Thu Jun 11 12:02:03 CEST 2020


Commit: 9385d887d17c529059d9f60008dc08fcec1d295f
Author: Bastien Montagne
Date:   Thu Jun 11 12:01:20 2020 +0200
Branches: master
https://developer.blender.org/rB9385d887d17c529059d9f60008dc08fcec1d295f

Fix bad poll function for constraints in liboverrides.

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

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 1e04355c9a7..a2d33ffe413 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -678,7 +678,7 @@ static bool edit_constraint_poll_generic(bContext *C, StructRNA *rna_type)
     return 0;
   }
 
-  if (ID_IS_OVERRIDE_LIBRARY(ob)) {
+  if (ID_IS_OVERRIDE_LIBRARY(ob) && ptr.data != NULL) {
     CTX_wm_operator_poll_msg_set(C, "Cannot edit constraints coming from library override");
     return (((bConstraint *)ptr.data)->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) != 0;
   }



More information about the Bf-blender-cvs mailing list