[Bf-blender-cvs] [fe5933a972e] master: Fix T71961: Soft body behavior is incorrect when CTRL + F12 animation is rendered.

Sebastian Parborg noreply at git.blender.org
Thu Mar 12 15:28:07 CET 2020


Commit: fe5933a972e15656bdfa1af9eaa0cf64619c9425
Author: Sebastian Parborg
Date:   Thu Mar 12 15:27:35 2020 +0100
Branches: master
https://developer.blender.org/rBfe5933a972e15656bdfa1af9eaa0cf64619c9425

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.

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

M	source/blender/modifiers/intern/MOD_softbody.c

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

diff --git a/source/blender/modifiers/intern/MOD_softbody.c b/source/blender/modifiers/intern/MOD_softbody.c
index 48ccd9b83ed..af6de8447ec 100644
--- a/source/blender/modifiers/intern/MOD_softbody.c
+++ b/source/blender/modifiers/intern/MOD_softbody.c
@@ -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 = {



More information about the Bf-blender-cvs mailing list