Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastián Barschkis <sebbas@sebbas.org>2020-02-19 17:07:31 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-02-19 17:07:54 +0300
commit4453509d83dcff4869b39a8d6e14c3d2caeee622 (patch)
tree0ab2091af39e2cd253298031594dc30fdc849805 /intern/mantaflow
parent367ecff15d74ed99a305cbfcd46599e59a75db02 (diff)
Fix T73770: Mantaflow is unable to bake fluid simulations on non-ASCII file paths
Some fluid cache functions were not using Blender's more secure BLI_gzopen() function. On Windows there are some special cases which this function can handle compared to the plain gzopen().
Diffstat (limited to 'intern/mantaflow')
-rw-r--r--intern/mantaflow/intern/MANTA_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp
index a78bb9f7719..7a0d4e56d37 100644
--- a/intern/mantaflow/intern/MANTA_main.cpp
+++ b/intern/mantaflow/intern/MANTA_main.cpp
@@ -1455,7 +1455,7 @@ int MANTA::writeConfiguration(FluidModifierData *mmd, int framenr)
BLI_join_dirfile(targetFile, sizeof(targetFile), cacheDir, ss.str().c_str());
BLI_path_frame(targetFile, framenr, 0);
- gzFile gzf = gzopen(targetFile, "wb1"); // do some compression
+ gzFile gzf = (gzfile)BLI_gzopen(targetFile, "wb1"); // do some compression
if (!gzf)
std::cerr << "writeConfiguration: can't open file: " << targetFile << std::endl;
@@ -1550,7 +1550,7 @@ int MANTA::readConfiguration(FluidModifierData *mmd, int framenr)
if (!BLI_exists(targetFile))
return 0;
- gzFile gzf = gzopen(targetFile, "rb"); // do some compression
+ gzFile gzf = (gzfile)BLI_gzopen(targetFile, "rb"); // do some compression
if (!gzf)
std::cerr << "readConfiguration: can't open file: " << targetFile << std::endl;