diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-05 14:35:50 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-03-05 14:36:00 +0300 |
commit | cd0a6ff5c45382fa5620dc6dbf089e2909e38a78 (patch) | |
tree | a2786bebd5526d9015b303dc21ed6ebc74f8a867 /release/scripts/startup/bl_ui/properties_physics_fluid.py | |
parent | 4d3da4e1d060232382df1414e0c99a094a9b1a28 (diff) |
Fluid: Diffusion settings now optional
For optimization purposes these settings need to be enabled explicitly from now on.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_fluid.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_fluid.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 117352bf8f4..71170c04494 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -957,6 +957,14 @@ class PHYSICS_PT_diffusion(PhysicButtonsPanel, Panel): return (context.engine in cls.COMPAT_ENGINES) + def draw_header(self, context): + md = context.fluid.domain_settings + domain = context.fluid.domain_settings + is_baking_any = domain.is_cache_baking_any + has_baked_any = domain.has_cache_baked_any + self.layout.enabled = not is_baking_any and not has_baked_any + self.layout.prop(md, "use_diffusion", text="") + def draw_header_preset(self, _context): FLUID_PT_presets.draw_panel_header(self.layout) |