[Bf-blender-cvs] [930021129a1] master: Quick effects: avoid error in builds without OpenVDB

Philipp Oeser noreply at git.blender.org
Thu Sep 3 12:58:15 CEST 2020


Commit: 930021129a1ed4c908ddafad62e31070b93dbb58
Author: Philipp Oeser
Date:   Wed Aug 19 14:29:06 2020 +0200
Branches: master
https://developer.blender.org/rB930021129a1ed4c908ddafad62e31070b93dbb58

Quick effects: avoid error in builds without OpenVDB

Differential Revision: https://developer.blender.org/D8626

===================================================================

M	release/scripts/startup/bl_operators/object_quick_effects.py

===================================================================

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



More information about the Bf-blender-cvs mailing list