Fix T71961: Soft body behavior is incorrect when CTRL + F12 animation is rendered.

The softbody modifier was missing the transform depsgraph relation and
thus the object matrix would not get updated during animation render.
This commit is contained in:
Sebastian Parborg 2020-03-12 15:27:35 +01:00
parent 37a07f812b
commit fe5933a972
Notes: blender-bot 2023-02-14 00:06:48 +01:00
Referenced by issue #75137, Bug : Soft-body simulation not stable while parented
Referenced by issue #71961, Soft body behavior is incorrect when CTRL + F12 animation is rendered.
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ static void updateDepsgraph(ModifierData *UNUSED(md), const ModifierUpdateDepsgr
DEG_add_forcefield_relations(
ctx->node, ctx->object, ctx->object->soft->effector_weights, true, 0, "Softbody Field");
}
/* We need own transformation as well. */
DEG_add_modifier_to_transform_relation(ctx->node, "SoftBody Modifier");
}
ModifierTypeInfo modifierType_Softbody = {