[Bf-blender-cvs] [81befded7bb] blender-v2.82-release: Fluid: Fix for smoke domain geometry object with adaptive domain enabled

Sebastián Barschkis noreply at git.blender.org
Mon Jan 20 14:34:18 CET 2020


Commit: 81befded7bb1276e6f284d69dce7d6742b4f31b7
Author: Sebastián Barschkis
Date:   Mon Jan 20 14:33:53 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB81befded7bb1276e6f284d69dce7d6742b4f31b7

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.

===================================================================

M	source/blender/blenkernel/intern/fluid.c

===================================================================

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. */



More information about the Bf-blender-cvs mailing list