Commit: 9d10fc13e770a0f63540f89644e3020a789d2a76
Author: Sergey Sharybin
Date:   Thu Jan 31 17:38:01 2019 +0100
Branches: master
https://developer.blender.org/rB9d10fc13e770a0f63540f89644e3020a789d2a76

Fix T61046: Object with cloth jumps around

Was happening due to missing relation from geometry to
transform component. Did not happen in old dependency
graph because that one could never evaluate geometry
prior to transform.

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

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

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

diff --git a/source/blender/modifiers/intern/MOD_cloth.c 
b/source/blender/modifiers/intern/MOD_cloth.c
index 0c7c701e5e5..3c9ad5a2bb7 100644
--- a/source/blender/modifiers/intern/MOD_cloth.c
+++ b/source/blender/modifiers/intern/MOD_cloth.c
@@ -140,6 +140,7 @@ static void updateDepsgraph(ModifierData *md, const 
ModifierUpdateDepsgraphConte
                DEG_add_collision_relations(ctx->node, ctx->object, 
clmd->coll_parms->group, eModifierType_Collision, NULL, "Cloth Collision");
                DEG_add_forcefield_relations(ctx->node, ctx->object, 
clmd->sim_parms->effector_weights, true, 0, "Cloth Field");
        }
+       DEG_add_object_relation(ctx->node, ctx->object, DEG_OB_COMP_TRANSFORM, 
"Cloth Modifier");
 }
 
 static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to