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-10-13 22:46:52 +0300
committerSebastián Barschkis <sebbas@sebbas.org>2020-10-14 01:29:43 +0300
commit3d1b5e35bddb9e54257021b2f2d610fbf5f0814b (patch)
treef48e021225d7559d117b3879272d0d702cd9fa25 /intern/mantaflow/intern/MANTA_main.cpp
parent2ec07dfa182d4503ccf3930406e8c7b239751e18 (diff)
Fluid: Enabled OpenVDB precision argument
This way particles can be saved with the custom OpenVDB precision options that were introduced in the latest Mantaflow update.
Diffstat (limited to 'intern/mantaflow/intern/MANTA_main.cpp')
-rw-r--r--intern/mantaflow/intern/MANTA_main.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp
index cc702b82151..ef7cd4721b0 100644
--- a/intern/mantaflow/intern/MANTA_main.cpp
+++ b/intern/mantaflow/intern/MANTA_main.cpp
@@ -740,11 +740,13 @@ void MANTA::initializeRNAMap(FluidModifierData *fmd)
else if (fds->openvdb_compression == VDB_COMPRESSION_BLOSC)
vdbCompressionMethod = "Compression_Blosc";
- string vdbPrecisionHalf = "True";
- if (fds->openvdb_data_depth == VDB_PRECISION_HALF_FLOAT)
- vdbPrecisionHalf = "True";
- else if (fds->openvdb_data_depth == VDB_PRECISION_FULL_FLOAT)
- vdbPrecisionHalf = "False";
+ string vdbPrecisionHalf = "Precision_Half";
+ if (fds->openvdb_data_depth == VDB_PRECISION_FULL_FLOAT)
+ vdbPrecisionHalf = "Precision_Full";
+ else if (fds->openvdb_data_depth == VDB_PRECISION_HALF_FLOAT)
+ vdbPrecisionHalf = "Precision_Half";
+ else if (fds->openvdb_data_depth == VDB_PRECISION_MINI_FLOAT)
+ vdbPrecisionHalf = "Precision_Mini";
mRNAMap["USING_SMOKE"] = getBooleanString(fds->type == FLUID_DOMAIN_TYPE_GAS);
mRNAMap["USING_LIQUID"] = getBooleanString(fds->type == FLUID_DOMAIN_TYPE_LIQUID);