Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_fluidsim_util.c
| Context not available. | |||||
| #include <stddef.h> | #include <stddef.h> | ||||
| #include <zlib.h> | #include <zlib.h> | ||||
| #include "CLG_log.h" | |||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| Context not available. | |||||
| // headers for fluidsim bobj meshes | // headers for fluidsim bobj meshes | ||||
| #include "LBM_fluidsim.h" | #include "LBM_fluidsim.h" | ||||
| static CLG_LogRef LOG = { "mod.fluidsim" }; | |||||
| void fluidsim_init(FluidsimModifierData *fluidmd) | void fluidsim_init(FluidsimModifierData *fluidmd) | ||||
| { | { | ||||
| Context not available. | |||||
| gotBytes = gzread(gzf, &wri, sizeof(wri)); | gotBytes = gzread(gzf, &wri, sizeof(wri)); | ||||
| if (wri != numfaces) { | if (wri != numfaces) { | ||||
| printf("Fluidsim: error in reading data from file.\n"); | CLOG_ERROR(&LOG, "error in reading data from file."); | ||||
| if (mesh) | if (mesh) | ||||
| BKE_id_free(NULL, mesh); | BKE_id_free(NULL, mesh); | ||||
| gzclose(gzf); | gzclose(gzf); | ||||
| Context not available. | |||||
| if (BLI_getenv(strEnvName2)) { | if (BLI_getenv(strEnvName2)) { | ||||
| int elevel = atoi(BLI_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", | CLG_FATAL(&LOG, "Env. var %s set, fluid sim mesh '%s' not found, aborting render...", | ||||
| strEnvName2, targetFile); | strEnvName2, targetFile); | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||