Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2696
T94600_snippet
Active
Public
Actions
Authored by
Philipp Oeser (lichtwerk)
on Jan 3 2022, 4:30 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
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);
Event Timeline
Philipp Oeser (lichtwerk)
created this paste.
Jan 3 2022, 4:30 PM
Philipp Oeser (lichtwerk)
mentioned this in
T94600: Constraint Shrinkwrap does not applies, it reset all changes
.
Jan 3 2022, 4:33 PM
Log In to Comment