Commit: 36ea543f82ebf9db15f101a2d435be50d6cc6069
Author: Kévin Dietrich
Date:   Mon Aug 3 16:11:58 2015 +0200
Branches: openvdb
https://developer.blender.org/rB36ea543f82ebf9db15f101a2d435be50d6cc6069

Also disable checkboxes in panel headers when the simulation was cached.

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

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 005c854..4c13d0c 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -210,8 +210,9 @@ class PHYSICS_PT_smoke_adaptive_domain(PhysicButtonsPanel, 
Panel):
 
     def draw_header(self, context):
         md = context.smoke.domain_settings
-
-        self.layout.prop(md, "use_adaptive_domain", text="")
+        layout = self.layout
+        layout.active = enable_panel(md)
+        layout.prop(md, "use_adaptive_domain", text="")
 
     def draw(self, context):
         layout = self.layout
@@ -244,8 +245,9 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel):
 
     def draw_header(self, context):
         md = context.smoke.domain_settings
-
-        self.layout.prop(md, "use_high_resolution", text="")
+        layout = self.layout
+        layout.active = enable_panel(md)
+        layout.prop(md, "use_high_resolution", text="")
 
     def draw(self, context):
         layout = self.layout

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to