Fluid: Fix issue with mesh not being loaded

Fixed an issue that was likely introduced in a past cleanup.
This commit is contained in:
Sebastián Barschkis 2020-04-08 16:25:00 +02:00
parent 34b28850bf
commit 020d1e23ae
1 changed files with 4 additions and 2 deletions

View File

@ -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);