Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-01-09 03:15:11 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-01-09 03:15:40 +0300
commit7ae35a7369df5b3eb0845996d9e1734d2bff80ef (patch)
treea761ecfe061d9a95c9316e243cb4fc4a05d0ae44 /extern
parent830aa758b40bea7b40116049a3535103337a3003 (diff)
Fluid: Fix broken motion blur for liquids
Added missing resize for vector that holds vert velocities
Diffstat (limited to 'extern')
-rw-r--r--extern/mantaflow/preprocessed/fileio/iomeshes.cpp1
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());