From c9cc5ad1c06b8a4b08749a5ba38ee0f1a546b0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastia=CC=81n=20Barschkis?= Date: Sun, 26 Jul 2020 21:43:18 +0200 Subject: Fluid: Updated Mantaflow source files New files contain updated sampling function (support for maximum number of particles cap). --- extern/mantaflow/preprocessed/fileio/ioparticles.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'extern/mantaflow/preprocessed/fileio') 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 int readPdataUni(const std::string &name, ParticleDataImpl 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"); -- cgit v1.2.3