diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-01-09 03:15:11 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-01-09 03:15:40 +0300 |
commit | 7ae35a7369df5b3eb0845996d9e1734d2bff80ef (patch) | |
tree | a761ecfe061d9a95c9316e243cb4fc4a05d0ae44 | |
parent | 830aa758b40bea7b40116049a3535103337a3003 (diff) |
Fluid: Fix broken motion blur for liquids
Added missing resize for vector that holds vert velocities
-rw-r--r-- | extern/mantaflow/preprocessed/fileio/iomeshes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extern/mantaflow/preprocessed/fileio/iomeshes.cpp b/extern/mantaflow/preprocessed/fileio/iomeshes.cpp index fc57e2a8c2b..900c9bf2776 100644 --- a/extern/mantaflow/preprocessed/fileio/iomeshes.cpp +++ b/extern/mantaflow/preprocessed/fileio/iomeshes.cpp @@ -423,6 +423,7 @@ template<class T> void readMdataUni(const std::string &name, MeshDataImpl<T> *md UniMeshHeader head; assertMsg(gzread(gzf, &head, sizeof(UniMeshHeader)) == sizeof(UniMeshHeader), "can't read file, no header present"); + mdata->resize(head.dim); assertMsg(head.dim == mdata->size(), "mdata size doesn't match"); # if FLOATINGPOINT_PRECISION != 1 MeshDataImpl<T> temp(mdata->getParent()); |