[Bf-blender-cvs] [a24b5a74b57] master: Fluid: Optimization for fluid domain obstacle boundary handling

Sebastián Barschkis noreply at git.blender.org
Thu Feb 6 19:28:09 CET 2020


Commit: a24b5a74b5715777746d3e7b5273574a46f94cd9
Author: Sebastián Barschkis
Date:   Thu Feb 6 19:27:47 2020 +0100
Branches: master
https://developer.blender.org/rBa24b5a74b5715777746d3e7b5273574a46f94cd9

Fluid: Optimization for fluid domain obstacle boundary handling

This fix should especially improve liquid obstacles boundaries, i.e. help with the problem of particles sticking to the surface.

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

M	intern/mantaflow/intern/strings/liquid_script.h

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

diff --git a/intern/mantaflow/intern/strings/liquid_script.h b/intern/mantaflow/intern/strings/liquid_script.h
index 442b09b5a8a..9a494a1cb6a 100644
--- a/intern/mantaflow/intern/strings/liquid_script.h
+++ b/intern/mantaflow/intern/strings/liquid_script.h
@@ -181,7 +181,7 @@ def liquid_adaptive_step_$ID$(framenr):\n\
     phi_s$ID$.join(phiIn_s$ID$)\n\
     \n\
     if using_obstacle_s$ID$:\n\
-        phi_s$ID$.subtract(phiObsIn_s$ID$)\n\
+        phi_s$ID$.subtract(o=phiObsIn_s$ID$, flags=flags_s$ID$, subtractType=FlagObstacle)\n\
     \n\
     if using_outflow_s$ID$:\n\
         phiOut_s$ID$.join(phiOutIn_s$ID$)\n\



More information about the Bf-blender-cvs mailing list