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-04-08 17:25:00 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-04-08 17:26:20 +0300
commit020d1e23aee934dfad5fabc4038362cb8adf6c2a (patch)
treeb44896681a994ae2a248d8a05a39c9f8a51798c3 /intern/mantaflow
parent34b28850bf86d674df428cddf0920c2853ebadb9 (diff)
Fluid: Fix issue with mesh not being loaded
Fixed an issue that was likely introduced in a past cleanup.
Diffstat (limited to 'intern/mantaflow')
-rw-r--r--intern/mantaflow/intern/MANTA_main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp
index 293abae1b3a..79c8625ec48 100644
--- a/intern/mantaflow/intern/MANTA_main.cpp
+++ b/intern/mantaflow/intern/MANTA_main.cpp
@@ -1098,12 +1098,14 @@ bool MANTA::updateMeshStructures(FluidModifierData *mmd, int framenr)
int expected = 0; /* Expected number of read successes for this frame. */
/* Ensure empty data structures at start. */
- if (!mMeshNodes || !mMeshTriangles || !mMeshVelocities)
+ if (!mMeshNodes || !mMeshTriangles)
return false;
mMeshNodes->clear();
mMeshTriangles->clear();
- mMeshVelocities->clear();
+
+ if (mMeshVelocities)
+ mMeshVelocities->clear();
std::string mformat = getCacheFileEnding(mmd->domain->cache_mesh_format);
std::string dformat = getCacheFileEnding(mmd->domain->cache_data_format);