[Bf-blender-cvs] [09aef78] openvdb: Fix for previous commit not taking into account the possibility that there is no cache.
Kévin Dietrich
noreply at git.blender.org
Mon Aug 3 16:41:13 CEST 2015
Commit: 09aef78229ad1ca07cddd2b0c5a464ca1b0e33b2
Author: Kévin Dietrich
Date: Mon Aug 3 15:45:31 2015 +0200
Branches: openvdb
https://developer.blender.org/rB09aef78229ad1ca07cddd2b0c5a464ca1b0e33b2
Fix for previous commit not taking into account the possibility that there is no cache.
===================================================================
M release/scripts/startup/bl_ui/properties_physics_smoke.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index eaf2532..005c854 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -25,11 +25,14 @@ from bl_ui.properties_physics_common import (
effector_weights_ui,
)
+
def enable_panel(domain):
if domain.cache_type in {'POINTCACHE'}:
return not domain.point_cache.is_baked
else:
- return not domain.active_openvdb_cache.is_baked
+ cache = domain.active_openvdb_cache
+ return (not cache.is_baked if cache else True)
+
class PhysicButtonsPanel:
bl_space_type = 'PROPERTIES'
More information about the Bf-blender-cvs
mailing list