Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-01-20 16:33:53 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-01-20 16:34:08 +0300
commit81befded7bb1276e6f284d69dce7d6742b4f31b7 (patch)
tree837b7ab06d3a0598d205a3ee787cce44b3a28414 /source/blender/blenkernel
parent8e7faf0e673e122e1998028a05be27274419081b (diff)
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/fluid.c3
1 files changed, 2 insertions, 1 deletions
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. */