From e9629e3cfdaf995bd76249595c5c2b7d81432e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 23 Mar 2020 23:44:37 +0100 Subject: Fluid: Use different phi for levelset generation Phi that is used for mesh should be the one that matches particles best. --- intern/mantaflow/intern/strings/liquid_script.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern') 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\ -- cgit v1.2.3