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-03-24 01:44:37 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-03-24 01:50:39 +0300
commite9629e3cfdaf995bd76249595c5c2b7d81432e76 (patch)
tree3b5793e1ff76a62a0bb3e3bd6fa660c110d6c269 /intern/mantaflow
parent1b5b6a5da83eb15f67fbea2a5d7632b065921808 (diff)
Fluid: Use different phi for levelset generation
Phi that is used for mesh should be the one that matches particles best.
Diffstat (limited to 'intern/mantaflow')
-rw-r--r--intern/mantaflow/intern/strings/liquid_script.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/mantaflow/intern/strings/liquid_script.h b/intern/mantaflow/intern/strings/liquid_script.h
index 2376d49aace..297c2a8ed6b 100644
--- a/intern/mantaflow/intern/strings/liquid_script.h
+++ b/intern/mantaflow/intern/strings/liquid_script.h
@@ -310,11 +310,11 @@ def liquid_step_mesh_$ID$():\n\
\n\
# no upres: just use the loaded grids\n\
if upres_sm$ID$ <= 1:\n\
- phi_sm$ID$.copyFrom(phiTmp_s$ID$)\n\
+ phi_sm$ID$.copyFrom(phi_s$ID$)\n\
\n\
# with upres: recreate grids\n\
else:\n\
- interpolateGrid(target=phi_sm$ID$, source=phiTmp_s$ID$)\n\
+ interpolateGrid(target=phi_sm$ID$, source=phi_s$ID$)\n\
\n\
# create surface\n\
pp_sm$ID$.readParticles(pp_s$ID$)\n\