[Bf-blender-cvs] [7ae35a7369d] master: Fluid: Fix broken motion blur for liquids
Sebastián Barschkis
noreply at git.blender.org
Thu Jan 9 01:50:35 CET 2020
Commit: 7ae35a7369df5b3eb0845996d9e1734d2bff80ef
Author: Sebastián Barschkis
Date: Thu Jan 9 01:15:11 2020 +0100
Branches: master
https://developer.blender.org/rB7ae35a7369df5b3eb0845996d9e1734d2bff80ef
Fluid: Fix broken motion blur for liquids
Added missing resize for vector that holds vert velocities
===================================================================
M extern/mantaflow/preprocessed/fileio/iomeshes.cpp
===================================================================
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());
More information about the Bf-blender-cvs
mailing list