[Bf-blender-cvs] [c635588] fluid-mantaflow: fix for viewport switcher: don't hide it when cache is baked
Sebastián Barschkis
noreply at git.blender.org
Sat Aug 20 00:22:49 CEST 2016
Commit: c635588cdca8c3ca34a60644d6c4d46b4b43bc6b
Author: Sebastián Barschkis
Date: Sat Aug 20 00:22:38 2016 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rBc635588cdca8c3ca34a60644d6c4d46b4b43bc6b
fix for viewport switcher: don't hide it when cache is baked
===================================================================
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 5ac88cf..1d4a700 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -271,9 +271,9 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel):
domain = context.smoke.domain_settings
split = layout.split()
- split.enabled = not domain.point_cache.is_baked
col = split.column()
+ col.enabled = not domain.point_cache.is_baked
col.label(text="Resolution:")
col.prop(domain, "resolution_max", text="Divisions")
# TODO (sebbas): Disabling render display switch for now. Needs some more consideration
@@ -287,6 +287,7 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel):
col.prop(domain, "viewport_display_mode", text="")
split = layout.split()
+ split.enabled = not domain.point_cache.is_baked
if domain.smoke_domain_type == 'GAS':
col = split.column()
More information about the Bf-blender-cvs
mailing list