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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-08-19 15:29:06 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-09-03 13:56:27 +0300
commit930021129a1ed4c908ddafad62e31070b93dbb58 (patch)
tree36c7a9a83655fa34cb667b1394c4f6f80137cfb9 /release
parenta04ac5b52de571335efe55e970f590d309ad1ea8 (diff)
Quick effects: avoid error in builds without OpenVDB
Differential Revision: https://developer.blender.org/D8626
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/object_quick_effects.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index d0344b88be8..46127f34bcd 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -400,7 +400,8 @@ class QuickSmoke(ObjectModeOperator, Operator):
obj.modifiers[-1].domain_settings.use_noise = True
# ensure correct cache file format for smoke
- obj.modifiers[-1].domain_settings.cache_data_format = 'OPENVDB'
+ if bpy.app.build_options.openvdb:
+ obj.modifiers[-1].domain_settings.cache_data_format = 'OPENVDB'
# Setup material
@@ -515,7 +516,8 @@ class QuickLiquid(Operator):
obj.modifiers[-1].domain_settings.use_collision_border_bottom = True
# ensure correct cache file formats for liquid
- obj.modifiers[-1].domain_settings.cache_data_format = 'OPENVDB'
+ if bpy.app.build_options.openvdb:
+ obj.modifiers[-1].domain_settings.cache_data_format = 'OPENVDB'
obj.modifiers[-1].domain_settings.cache_mesh_format = 'BOBJECT'
# change domain type, will also allocate and show particle system for FLIP