diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-05 18:23:02 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-05 18:23:02 +0300 |
commit | a5637756491ca1b9baa544ad86f74627f6333d04 (patch) | |
tree | ba7e4caa18df2cb3552f157c80fd059397f95276 /extern/mantaflow/helper | |
parent | 4212ea7b7de70f2346e27505ae7e966a7830f038 (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')
-rw-r--r-- | extern/mantaflow/helper/util/vectorbase.h | 5 |
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) { |