diff options
Diffstat (limited to 'intern/mantaflow')
-rw-r--r-- | intern/mantaflow/intern/MANTA_main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp index 6671fbc0d7d..11ce32fb828 100644 --- a/intern/mantaflow/intern/MANTA_main.cpp +++ b/intern/mantaflow/intern/MANTA_main.cpp @@ -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); |