Fix: Erratic collision response when using constraints on colliders
authorBenjamin Meyer <>
Thu, 4 Apr 2019 08:39:12 +0000 (10:39 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 4 Apr 2019 09:05:52 +0000 (11:05 +0200)
Missing dependency, which made collission to access object transform
prior it was evaluated.

Reviewers: sergey

Differential Revision: https://developer.blender.org/D4636

release/datafiles/locale
release/scripts/addons
release/scripts/addons_contrib
source/blender/modifiers/intern/MOD_collision.c
source/tools

index 345b7d2..199b3a7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 345b7d27872d87ae5074a83d8b9995b37bc56f1b
+Subproject commit 199b3a7c2f03a3af6f612e092d3359f7b6f288cc
index cd9213d..3683429 160000 (submodule)
@@ -1 +1 @@
-Subproject commit cd9213d669fa8cd585dcadb1a5b09fcdedd1212e
+Subproject commit 3683429de050b8026835d17ae7288a436c31cdb6
index 4c5ddae..ca68e1d 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 4c5ddaeb2d1953ea9db10b2fdde2f93e19b1d6d7
+Subproject commit ca68e1d4e01d343b1758118b500bdc92eaea30ee
index 371a33e..2e56da6 100644 (file)
@@ -240,6 +240,10 @@ static void deformVerts(
        }
 }
 
+static void updateDepsgraph(ModifierData *UNUSED(md), const ModifierUpdateDepsgraphContext *ctx)
+{
+       DEG_add_modifier_to_transform_relation(ctx->node, "Collision Modifier");
+}
 
 ModifierTypeInfo modifierType_Collision = {
        /* name */              "Collision",
@@ -261,7 +265,7 @@ ModifierTypeInfo modifierType_Collision = {
        /* requiredDataMask */  NULL,
        /* freeData */          freeData,
        /* isDisabled */        NULL,
-       /* updateDepsgraph */   NULL,
+       /* updateDepsgraph */   updateDepsgraph,
        /* dependsOnTime */     dependsOnTime,
        /* dependsOnNormals */  NULL,
        /* foreachObjectLink */ NULL,
index 279c373..d96e314 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 279c373280e54388ede50abea9d11d5cdaa1d567
+Subproject commit d96e3148deaea3eab7b5dbddfd2bffaa61ad2487