From 81befded7bb1276e6f284d69dce7d6742b4f31b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 20 Jan 2020 14:33:53 +0100 Subject: [PATCH] Fluid: Fix for smoke domain geometry object with adaptive domain enabled The smoke mesh geometry always needs to be updated when using the adaptive domain. --- source/blender/blenkernel/intern/fluid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/fluid.c b/source/blender/blenkernel/intern/fluid.c index 106f1216d2a..8acc2df4aea 100644 --- a/source/blender/blenkernel/intern/fluid.c +++ b/source/blender/blenkernel/intern/fluid.c @@ -3826,7 +3826,8 @@ struct Mesh *BKE_fluid_modifier_do( FluidDomainSettings *mds = mmd->domain; /* Always update viewport in cache replay mode. */ - if (mds->cache_type == FLUID_DOMAIN_CACHE_REPLAY) { + if (mds->cache_type == FLUID_DOMAIN_CACHE_REPLAY || + mds->flags & FLUID_DOMAIN_USE_ADAPTIVE_DOMAIN) { needs_viewport_update = true; } /* In other cache modes, only update the viewport when no bake is going on. */