mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fluid: Fix missing flag update for cache
These flags need to be set correctly in order to distinguish between data that comes from cache files and raw data that comes directly from pointers to the data in Mantaflow.
This commit is contained in:
parent
14eaa9ed63
commit
797027be6b
1 changed files with 5 additions and 3 deletions
|
|
@ -1256,6 +1256,7 @@ bool MANTA::readData(FluidModifierData *fmd, int framenr, bool resumable)
|
|||
<< ", '" << volume_format << "', " << resumable_cache << ")";
|
||||
pythonCommands.push_back(ss.str());
|
||||
result &= runPythonString(pythonCommands);
|
||||
return (mSmokeFromFile = result);
|
||||
}
|
||||
if (mUsingLiquid) {
|
||||
ss.str("");
|
||||
|
|
@ -1263,6 +1264,7 @@ bool MANTA::readData(FluidModifierData *fmd, int framenr, bool resumable)
|
|||
<< ", '" << volume_format << "', " << resumable_cache << ")";
|
||||
pythonCommands.push_back(ss.str());
|
||||
result &= runPythonString(pythonCommands);
|
||||
return (mFlipFromFile = result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -1296,7 +1298,7 @@ bool MANTA::readNoise(FluidModifierData *fmd, int framenr, bool resumable)
|
|||
<< ", '" << volume_format << "', " << resumable_cache << ")";
|
||||
pythonCommands.push_back(ss.str());
|
||||
|
||||
return runPythonString(pythonCommands);
|
||||
return (mNoiseFromFile = runPythonString(pythonCommands));
|
||||
}
|
||||
|
||||
bool MANTA::readMesh(FluidModifierData *fmd, int framenr)
|
||||
|
|
@ -1331,7 +1333,7 @@ bool MANTA::readMesh(FluidModifierData *fmd, int framenr)
|
|||
pythonCommands.push_back(ss.str());
|
||||
}
|
||||
|
||||
return runPythonString(pythonCommands);
|
||||
return (mMeshFromFile = runPythonString(pythonCommands));
|
||||
}
|
||||
|
||||
bool MANTA::readParticles(FluidModifierData *fmd, int framenr, bool resumable)
|
||||
|
|
@ -1365,7 +1367,7 @@ bool MANTA::readParticles(FluidModifierData *fmd, int framenr, bool resumable)
|
|||
<< framenr << ", '" << volume_format << "', " << resumable_cache << ")";
|
||||
pythonCommands.push_back(ss.str());
|
||||
|
||||
return runPythonString(pythonCommands);
|
||||
return (mParticlesFromFile = runPythonString(pythonCommands));
|
||||
}
|
||||
|
||||
bool MANTA::readGuiding(FluidModifierData *fmd, int framenr, bool sourceDomain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue