diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-09-05 07:31:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-05 07:32:19 +0300 |
commit | c13b2a2504393371e32a4fb4c01cfad8d7cc929e (patch) | |
tree | a07973eeff324519187c23cd6b52f61da10d83a3 /source/blender/editors/physics | |
parent | bb6a94fa7b28390ea8c22a6026562b0ab6685f92 (diff) |
Fix T54152: --env-system-scripts fails on win32
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index 1cd2528b3ca..f960d6ed97b 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -42,6 +42,7 @@ #include "DNA_object_fluidsim_types.h" #include "BLI_blenlib.h" +#include "BLI_path_util.h" #include "BLI_math.h" #include "BLI_utildefines.h" @@ -868,8 +869,8 @@ static int fluidsimBake(bContext *C, ReportList *reports, Object *fsDomain, shor fb= MEM_callocN(sizeof(FluidBakeJob), "fluid bake job"); - if (getenv(strEnvName)) { - int dlevel = atoi(getenv(strEnvName)); + if (BLI_getenv(strEnvName)) { + int dlevel = atoi(BLI_getenv(strEnvName)); elbeemSetDebugLevel(dlevel); BLI_snprintf(debugStrBuffer, sizeof(debugStrBuffer), "fluidsimBake::msg: Debug messages activated due to envvar '%s'\n", strEnvName); elbeemDebugOut(debugStrBuffer); |