Page MenuHome
Paste P2696

T94600_snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Jan 3 2022, 4:30 PM.
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index d284c32b1df..62e1c806dcd 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -5679,8 +5679,10 @@ bool BKE_constraint_apply_for_object(Depsgraph *depsgraph,
bConstraint *new_con = BKE_constraint_duplicate_ex(con, 0, !ID_IS_LINKED(ob));
ListBase single_con = {new_con, new_con};
+ Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob);
+
bConstraintOb *cob = BKE_constraints_make_evalob(
- depsgraph, scene, ob, NULL, CONSTRAINT_OBTYPE_OBJECT);
+ depsgraph, scene, ob_eval, NULL, CONSTRAINT_OBTYPE_OBJECT);
/* Undo the effect of the current constraint stack evaluation. */
mul_m4_m4m4(cob->matrix, ob->constinv, cob->matrix);