diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 00:38:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-17 00:47:06 +0300 |
commit | 79c3e8db26da63f5c2a88b2523f5ff5a24e3ae48 (patch) | |
tree | 52a2507563973541ba2c97e73c46e86d027bd6cb /source/blender/modifiers/intern | |
parent | 714e48ec55b6d787e2caa844eb9b1c14a45fc6da (diff) |
Fix linking errors WITH_MOD_FLUID=OFF
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_fluid.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluid.c b/source/blender/modifiers/intern/MOD_fluid.c index aba9e352162..7d9695b8013 100644 --- a/source/blender/modifiers/intern/MOD_fluid.c +++ b/source/blender/modifiers/intern/MOD_fluid.c @@ -60,18 +60,26 @@ static void initData(ModifierData *md) static void copyData(const ModifierData *md, ModifierData *target, const int flag) { +#ifndef WITH_FLUID + UNUSED_VARS(md, target, flag); +#else const FluidModifierData *mmd = (const FluidModifierData *)md; FluidModifierData *tmmd = (FluidModifierData *)target; fluidModifier_free(tmmd); fluidModifier_copy(mmd, tmmd, flag); +#endif /* WITH_FLUID */ } static void freeData(ModifierData *md) { +#ifndef WITH_FLUID + UNUSED_VARS(md); +#else FluidModifierData *mmd = (FluidModifierData *)md; fluidModifier_free(mmd); +#endif /* WITH_FLUID */ } static void requiredDataMask(Object *UNUSED(ob), @@ -96,6 +104,10 @@ static void requiredDataMask(Object *UNUSED(ob), static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mesh *me) { +#ifndef WITH_FLUID + UNUSED_VARS(md, ctx); + return me; +#else FluidModifierData *mmd = (FluidModifierData *)md; Mesh *result = NULL; @@ -107,6 +119,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes result = fluidModifier_do(mmd, ctx->depsgraph, scene, ctx->object, me); return result ? result : me; +#endif /* WITH_FLUID */ } static bool dependsOnTime(ModifierData *UNUSED(md)) |