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'
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs