diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-08-19 15:29:06 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-09-03 13:56:27 +0300 |
commit | 930021129a1ed4c908ddafad62e31070b93dbb58 (patch) | |
tree | 36c7a9a83655fa34cb667b1394c4f6f80137cfb9 /release | |
parent | a04ac5b52de571335efe55e970f590d309ad1ea8 (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.py | 6 |
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 |