Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/physics_fluid.c
| Show First 20 Lines • Show All 860 Lines • ▼ Show 20 Lines | static int fluidsimBake(bContext *C, ReportList *reports, Object *fsDomain, short do_job) | ||||
| FluidsimModifierData *fluidmd = NULL; | FluidsimModifierData *fluidmd = NULL; | ||||
| Mesh *mesh = NULL; | Mesh *mesh = NULL; | ||||
| FluidBakeJob *fb; | FluidBakeJob *fb; | ||||
| elbeemSimulationSettings *fsset= MEM_callocN(sizeof(elbeemSimulationSettings), "Fluid sim settings"); | elbeemSimulationSettings *fsset= MEM_callocN(sizeof(elbeemSimulationSettings), "Fluid sim settings"); | ||||
| fb= MEM_callocN(sizeof(FluidBakeJob), "fluid bake job"); | fb= MEM_callocN(sizeof(FluidBakeJob), "fluid bake job"); | ||||
| if (getenv(strEnvName)) { | if (BLI_getenv(strEnvName)) { | ||||
| int dlevel = atoi(getenv(strEnvName)); | int dlevel = atoi(BLI_getenv(strEnvName)); | ||||
| elbeemSetDebugLevel(dlevel); | elbeemSetDebugLevel(dlevel); | ||||
| BLI_snprintf(debugStrBuffer, sizeof(debugStrBuffer), "fluidsimBake::msg: Debug messages activated due to envvar '%s'\n", strEnvName); | BLI_snprintf(debugStrBuffer, sizeof(debugStrBuffer), "fluidsimBake::msg: Debug messages activated due to envvar '%s'\n", strEnvName); | ||||
| elbeemDebugOut(debugStrBuffer); | elbeemDebugOut(debugStrBuffer); | ||||
| } | } | ||||
| /* make sure it corresponds to startFrame setting (old: noFrames = scene->r.efra - scene->r.sfra +1) */; | /* make sure it corresponds to startFrame setting (old: noFrames = scene->r.efra - scene->r.sfra +1) */; | ||||
| noFrames = scene->r.efra - 0; | noFrames = scene->r.efra - 0; | ||||
| if (noFrames<=0) { | if (noFrames<=0) { | ||||
| ▲ Show 20 Lines • Show All 241 Lines • Show Last 20 Lines | |||||