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/preprocessed/plugin/surfaceturbulence.cpp | |
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/preprocessed/plugin/surfaceturbulence.cpp')
-rw-r--r-- | extern/mantaflow/preprocessed/plugin/surfaceturbulence.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extern/mantaflow/preprocessed/plugin/surfaceturbulence.cpp b/extern/mantaflow/preprocessed/plugin/surfaceturbulence.cpp index aa04b551e1e..e5aa09117ea 100644 --- a/extern/mantaflow/preprocessed/plugin/surfaceturbulence.cpp +++ b/extern/mantaflow/preprocessed/plugin/surfaceturbulence.cpp @@ -2145,8 +2145,7 @@ void PbRegister_particleSurfaceTurbulence() void debugCheckParts(const BasicParticleSystem &parts, const FlagGrid &flags) { for (int idx = 0; idx < parts.size(); idx++) { - Vec3i p = toVec3i(parts.getPos(idx)); - if (!flags.isInBounds(p)) { + if (!flags.isInBounds(parts.getPos(idx))) { debMsg("bad position??? " << idx << " " << parts.getPos(idx), 1); exit(1); } |