Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_fluidsim_util.c
| Show First 20 Lines • Show All 475 Lines • ▼ Show 20 Lines | static DerivedMesh *fluidsim_read_cache( | ||||
| dm = fluidsim_read_obj(targetFile, &mp_example); | dm = fluidsim_read_obj(targetFile, &mp_example); | ||||
| if (!dm) { | if (!dm) { | ||||
| /* switch, abort background rendering when fluidsim mesh is missing */ | /* switch, abort background rendering when fluidsim mesh is missing */ | ||||
| const char *strEnvName2 = "BLENDER_ELBEEMBOBJABORT"; // from blendercall.cpp | const char *strEnvName2 = "BLENDER_ELBEEMBOBJABORT"; // from blendercall.cpp | ||||
| if (G.background == 1) { | if (G.background == 1) { | ||||
| if (getenv(strEnvName2)) { | if (BLI_getenv(strEnvName2)) { | ||||
| int elevel = atoi(getenv(strEnvName2)); | int elevel = atoi(BLI_getenv(strEnvName2)); | ||||
| if (elevel > 0) { | if (elevel > 0) { | ||||
| printf("Env. var %s set, fluid sim mesh '%s' not found, aborting render...\n", | printf("Env. var %s set, fluid sim mesh '%s' not found, aborting render...\n", | ||||
| strEnvName2, targetFile); | strEnvName2, targetFile); | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||