Fix compilation error with legacy depsgraph disabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Feb 2018 12:05:38 +0000 (13:05 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Feb 2018 12:05:38 +0000 (13:05 +0100)
source/blender/modifiers/intern/MOD_cloth.c
source/blender/modifiers/intern/MOD_dynamicpaint.c

index 5f806ba4e4c1c57b9db820094c9f8e42c43b7f24..2b181c0fb1855623f6238802fc1713cec0b5f28d 100644 (file)
@@ -127,10 +127,7 @@ static void updateDepgraph(ModifierData *md, const ModifierUpdateDepsgraphContex
                dag_add_collision_relations(ctx->forest, ctx->scene, ctx->object, ctx->obNode, clmd->coll_parms->group, ctx->object->lay|ctx->scene->lay, eModifierType_Collision, NULL, true, "Cloth Collision");
                dag_add_forcefield_relations(ctx->forest, ctx->scene, ctx->object, ctx->obNode, clmd->sim_parms->effector_weights, true, 0, "Cloth Field");
 #else
-       (void)forest;
-       (void)scene;
-       (void)ob;
-       (void)obNode;
+       (void)ctx;
 #endif
        }
 }
index a610fc6ed8bf5cdeea6134328f1b65659f4efccd..faf06f2d1287d5b96aa78711348d00b9e3c33d2a 100644 (file)
@@ -146,10 +146,7 @@ static void updateDepgraph(ModifierData *md, const ModifierUpdateDepsgraphContex
                        dag_add_collision_relations(ctx->forest, ctx->scene, ctx->object, ctx->obNode, surface->brush_group, -1, eModifierType_DynamicPaint, is_brush_cb, false, "Dynamic Paint Brush");
                }
 #else
-       (void)forest;
-       (void)scene;
-       (void)ob;
-       (void)obNode;
+       (void)ctx;
 #endif
        }
 }