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>2021-02-05 18:23:02 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2021-02-05 18:23:02 +0300
commita5637756491ca1b9baa544ad86f74627f6333d04 (patch)
treeba7e4caa18df2cb3552f157c80fd059397f95276 /extern/mantaflow/helper/util
parent4212ea7b7de70f2346e27505ae7e966a7830f038 (diff)
Fluid: Updated Mantaflow source files
This updates fixes the following issues (critical for 2.92): - Issue that prevented dense 'int' grids from being exported (incorrect clip value) - Issue with particles outside out of domain bounds (position between -1 and 0) not being deleted
Diffstat (limited to 'extern/mantaflow/helper/util')
-rw-r--r--extern/mantaflow/helper/util/vectorbase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/mantaflow/helper/util/vectorbase.h b/extern/mantaflow/helper/util/vectorbase.h
index 9b4d9c83f0b..3c7c6e6bc01 100644
--- a/extern/mantaflow/helper/util/vectorbase.h
+++ b/extern/mantaflow/helper/util/vectorbase.h
@@ -664,6 +664,11 @@ template<class T> inline Vec3i toVec3iRound(T v)
return Vec3i((int)round(v[0]), (int)round(v[1]), (int)round(v[2]));
}
+template<class T> inline Vec3i toVec3iFloor(T v)
+{
+ return Vec3i((int)floor(v[0]), (int)floor(v[1]), (int)floor(v[2]));
+}
+
//! convert to int Vector if values are close enough to an int
template<class T> inline Vec3i toVec3iChecked(T v)
{