[Bf-blender-cvs] [98d7f350871] fluid-mantaflow: Mantaflow: Fix for Eevee attempting to draw volumes into liquid domains

Sebastián Barschkis noreply at git.blender.org
Wed Nov 20 14:40:05 CET 2019


Commit: 98d7f3508717611bb4035ec4d78a0645674bfd4e
Author: Sebastián Barschkis
Date:   Wed Nov 20 12:45:42 2019 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rB98d7f3508717611bb4035ec4d78a0645674bfd4e

Mantaflow: Fix for Eevee attempting to draw volumes into liquid domains

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

M	source/blender/draw/engines/eevee/eevee_volumes.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_volumes.c b/source/blender/draw/engines/eevee/eevee_volumes.c
index cc2e6aff7bf..d3d61685f01 100644
--- a/source/blender/draw/engines/eevee/eevee_volumes.c
+++ b/source/blender/draw/engines/eevee/eevee_volumes.c
@@ -436,6 +436,11 @@ void EEVEE_volumes_cache_object_add(EEVEE_ViewLayerData *sldata,
     MantaModifierData *mmd = (MantaModifierData *)md;
     MantaDomainSettings *mds = mmd->domain;
 
+    /* Don't try to show liquid domains here. */
+    if (!mds->fluid || !(mds->type == FLUID_DOMAIN_TYPE_GAS)) {
+      return;
+    }
+
     /* Don't show smoke before simulation starts, this could be made an option in the future. */
     /* (sebbas): Always show smoke for manta */
     /* const bool show_smoke = ((int)DEG_get_ctime(draw_ctx->depsgraph) >= mds->point_cache[0]->startframe); */



More information about the Bf-blender-cvs mailing list