[Bf-blender-cvs] [36ea543] openvdb: Also disable checkboxes in panel headers when the simulation was cached.

Kévin Dietrich noreply at git.blender.org
Mon Aug 3 16:41:15 CEST 2015


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




More information about the Bf-blender-cvs mailing list