Changeset View
Changeset View
Standalone View
Standalone View
intern/mantaflow/intern/strings/fluid_script.h
| Show First 20 Lines • Show All 484 Lines • ▼ Show 20 Lines | |||||
| \n\ | \n\ | ||||
| # Release unreferenced memory (if there is some left)\n\ | # Release unreferenced memory (if there is some left)\n\ | ||||
| gc.collect()\n"; | gc.collect()\n"; | ||||
| ////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////// | ||||
| // BAKE | // BAKE | ||||
| ////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////// | ||||
| /* This has to match the behavior of BLI_path_frame, | |||||
| * for positive and negative frame numbers. */ | |||||
| const std::string fluid_cache_helper = | const std::string fluid_cache_helper = | ||||
| "\n\ | "\n\ | ||||
| def fluid_cache_get_framenr_formatted_$ID$(framenr):\n\ | def fluid_cache_get_framenr_formatted_$ID$(framenr):\n\ | ||||
| return str(framenr).zfill(4) # framenr with leading zeroes\n"; | return str(framenr).zfill(4) if framenr >= 0 else str(framenr).zfill(5)\n"; | ||||
| const std::string fluid_bake_multiprocessing = | const std::string fluid_bake_multiprocessing = | ||||
| "\n\ | "\n\ | ||||
| def fluid_cache_multiprocessing_start_$ID$(function, framenr, format_data=None, format_noise=None, format_mesh=None, format_particles=None, format_guiding=None, path_data=None, path_noise=None, path_mesh=None, path_particles=None, path_guiding=None, dict=None, do_join=True, resumable=False):\n\ | def fluid_cache_multiprocessing_start_$ID$(function, framenr, format_data=None, format_noise=None, format_mesh=None, format_particles=None, format_guiding=None, path_data=None, path_noise=None, path_mesh=None, path_particles=None, path_guiding=None, dict=None, do_join=True, resumable=False):\n\ | ||||
| mantaMsg('Multiprocessing cache')\n\ | mantaMsg('Multiprocessing cache')\n\ | ||||
| if __name__ == '__main__':\n\ | if __name__ == '__main__':\n\ | ||||
| args = (framenr,)\n\ | args = (framenr,)\n\ | ||||
| if format_data:\n\ | if format_data:\n\ | ||||
| ▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines | |||||