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
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-01-13 20:55:58 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-01-13 20:56:53 +0300
commit99912f15e877686c2750b95d5b3f27d9b815f19d (patch)
treef34b19e2eb475b9eee8c2d3ebefd1b593c102610 /extern/mantaflow/preprocessed/fileio/iomeshes.cpp
parente34d3e32dda7cbee86027819505f782eeee3a1a5 (diff)
Fluid: Updated Mantaflow source files
The memory leak described in T72498 has been fixed in Mantaflow, the updated files should reflect this in Blender.
Diffstat (limited to 'extern/mantaflow/preprocessed/fileio/iomeshes.cpp')
-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 900c9bf2776..79a9e76da3f 100644
--- a/extern/mantaflow/preprocessed/fileio/iomeshes.cpp
+++ b/extern/mantaflow/preprocessed/fileio/iomeshes.cpp
@@ -424,6 +424,7 @@ template<class T> void readMdataUni(const std::string &name, MeshDataImpl<T> *md
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());