diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-07-26 22:43:18 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-07-26 23:04:59 +0300 |
commit | c9cc5ad1c06b8a4b08749a5ba38ee0f1a546b0f5 (patch) | |
tree | 7cae5646ce88b42a84ee1729fed2635ec279b94a /extern/mantaflow/preprocessed/fileio | |
parent | 65e1d43f0bc29b9ed9853b7cb1665ebeb22b259c (diff) |
Fluid: Updated Mantaflow source files
New files contain updated sampling function (support for maximum number of particles cap).
Diffstat (limited to 'extern/mantaflow/preprocessed/fileio')
-rw-r--r-- | extern/mantaflow/preprocessed/fileio/ioparticles.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extern/mantaflow/preprocessed/fileio/ioparticles.cpp b/extern/mantaflow/preprocessed/fileio/ioparticles.cpp index 84283a25b07..36e10aa1644 100644 --- a/extern/mantaflow/preprocessed/fileio/ioparticles.cpp +++ b/extern/mantaflow/preprocessed/fileio/ioparticles.cpp @@ -322,6 +322,7 @@ template<class T> int readPdataUni(const std::string &name, ParticleDataImpl<T> UniPartHeader head; assertMsg(gzread(gzf, &head, sizeof(UniPartHeader)) == sizeof(UniPartHeader), "can't read file, no header present"); + pdata->getParticleSys()->resize(head.dim); // ensure that parent particle system has same size pdata->resize(head.dim); assertMsg(head.dim == pdata->size(), "pdata size doesn't match"); |