From 83e245023c481aa2f57588724915e554c00c05d2 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 19 Nov 2021 11:48:25 +0100 Subject: Fix (unreported) wrong behavior of constraints in liboverrides. All constraints were 'made local', including the ones comming from the reference linked object. --- source/blender/makesrna/intern/rna_pose.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesrna/intern/rna_pose.c') diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c index ee509fa92d4..cdf7fe5a7aa 100644 --- a/source/blender/makesrna/intern/rna_pose.c +++ b/source/blender/makesrna/intern/rna_pose.c @@ -650,6 +650,7 @@ static bConstraint *rna_PoseChannel_constraints_copy(ID *id, Object *ob = (Object *)id; bConstraint *con = con_ptr->data; bConstraint *new_con = BKE_constraint_copy_for_pose(ob, pchan, con); + new_con->flag |= CONSTRAINT_OVERRIDE_LIBRARY_LOCAL; ED_object_constraint_dependency_tag_update(bmain, ob, new_con); WM_main_add_notifier(NC_OBJECT | ND_CONSTRAINT | NA_ADDED, id); -- cgit v1.2.3