Fluid: Fix for refactor 99ee1de094

Fix incorrect file IO functions.
This commit is contained in:
Sebastián Barschkis 2020-05-13 13:04:49 +02:00
parent 498bd0772e
commit 9db08b77e4
1 changed files with 5 additions and 5 deletions

View File

@ -797,13 +797,13 @@ void MANTA::initializeRNAMap(FluidModifierData *mmd)
mRNAMap["FLAME_SMOKE_COLOR_X"] = to_string(mds->flame_smoke_color[0]);
mRNAMap["FLAME_SMOKE_COLOR_Y"] = to_string(mds->flame_smoke_color[1]);
mRNAMap["FLAME_SMOKE_COLOR_Z"] = to_string(mds->flame_smoke_color[2]);
mRNAMap["CURRENT_FRAME"] = to_string(mmd->time);
mRNAMap["CURRENT_FRAME"] = to_string(int(mmd->time));
mRNAMap["START_FRAME"] = to_string(mds->cache_frame_start);
mRNAMap["END_FRAME"] = to_string(mds->cache_frame_end);
mRNAMap["CACHE_DATA_FORMAT"] = to_string(mds->cache_data_format);
mRNAMap["CACHE_MESH_FORMAT"] = to_string(mds->cache_mesh_format);
mRNAMap["CACHE_NOISE_FORMAT"] = to_string(mds->cache_noise_format);
mRNAMap["CACHE_PARTICLE_FORMAT"] = to_string(mds->cache_particle_format);
mRNAMap["CACHE_DATA_FORMAT"] = getCacheFileEnding(mds->cache_data_format);
mRNAMap["CACHE_MESH_FORMAT"] = getCacheFileEnding(mds->cache_mesh_format);
mRNAMap["CACHE_NOISE_FORMAT"] = getCacheFileEnding(mds->cache_noise_format);
mRNAMap["CACHE_PARTICLE_FORMAT"] = getCacheFileEnding(mds->cache_particle_format);
mRNAMap["SIMULATION_METHOD"] = simulationMethod;
mRNAMap["FLIP_RATIO"] = to_string(mds->flip_ratio);
mRNAMap["PARTICLE_RANDOMNESS"] = to_string(mds->particle_randomness);