[Bf-blender-cvs] [77ba932ec13] fluid-mantaflow: small fix for extrapolation function

Sebastián Barschkis noreply at git.blender.org
Tue Mar 14 01:13:30 CET 2017


Commit: 77ba932ec137567739426638c54cef35a1c03d2e
Author: Sebastián Barschkis
Date:   Mon Mar 13 23:04:10 2017 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rB77ba932ec137567739426638c54cef35a1c03d2e

small fix for extrapolation function

distance argument was not int - was problematic with uneven divisions size

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

M	intern/mantaflow/intern/strings/smoke_script.h

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

diff --git a/intern/mantaflow/intern/strings/smoke_script.h b/intern/mantaflow/intern/strings/smoke_script.h
index 102c78a8c8b..04d222299e2 100644
--- a/intern/mantaflow/intern/strings/smoke_script.h
+++ b/intern/mantaflow/intern/strings/smoke_script.h
@@ -277,7 +277,7 @@ def step_low():\n\
     mantaMsg('Adding object velocity')\n\
     averageGrid(grid=obvel, num=numObs)\n\
     # ensure velocities inside of obs object, slightly add obvels outside of obs object\n\
-    extrapolateVec3Simple(vel=obvel, phi=phiObsIn, distance=res/2, inside=True)\n\
+    extrapolateVec3Simple(vel=obvel, phi=phiObsIn, distance=int(res/2), inside=True)\n\
     extrapolateVec3Simple(vel=obvel, phi=phiObsIn, distance=obvel_border, inside=False)\n\
     setObstacleVelocity(flags=flags, vel=vel, obvel=obvel, borderWidth=obvel_border-1)\n\
     \n\




More information about the Bf-blender-cvs mailing list