diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2016-04-28 19:38:10 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2016-04-28 19:38:10 +0300 |
commit | c3863650cca233ec3a46d2da1584d402aa8c52e6 (patch) | |
tree | 70fac236a3ee1c6ead7e7d2e9828305a8e1efb4b /release/scripts/startup/bl_ui/properties_physics_softbody.py | |
parent | 1f723603c882e6d79ab69bea6e5c034ae21a6ce7 (diff) |
Removed UI for point cache users.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_softbody.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_softbody.py | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_softbody.py b/release/scripts/startup/bl_ui/properties_physics_softbody.py index e74cac3d06b..32f220ce7c1 100644 --- a/release/scripts/startup/bl_ui/properties_physics_softbody.py +++ b/release/scripts/startup/bl_ui/properties_physics_softbody.py @@ -21,15 +21,10 @@ import bpy from bpy.types import Panel from bl_ui.properties_physics_common import ( - point_cache_ui, effector_weights_ui, ) -def softbody_panel_enabled(md): - return (md.point_cache.is_baked is False) - - class PhysicButtonsPanel: bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' @@ -55,7 +50,6 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel): # General split = layout.split() - split.enabled = softbody_panel_enabled(md) col = split.column() col.label(text="Object:") @@ -68,15 +62,6 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel): col.prop(softbody, "speed") -class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel): - bl_label = "Soft Body Cache" - bl_options = {'DEFAULT_CLOSED'} - - def draw(self, context): - md = context.soft_body - point_cache_ui(self, context, md.point_cache, softbody_panel_enabled(md), 'SOFTBODY') - - class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel): bl_label = "Soft Body Goal" bl_options = {'DEFAULT_CLOSED'} @@ -84,7 +69,6 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel): def draw_header(self, context): softbody = context.soft_body.settings - self.layout.active = softbody_panel_enabled(context.soft_body) self.layout.prop(softbody, "use_goal", text="") def draw(self, context): @@ -94,7 +78,7 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel): softbody = md.settings ob = context.object - layout.active = softbody.use_goal and softbody_panel_enabled(md) + layout.active = softbody.use_goal split = layout.split() @@ -123,7 +107,6 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel): def draw_header(self, context): softbody = context.soft_body.settings - self.layout.active = softbody_panel_enabled(context.soft_body) self.layout.prop(softbody, "use_edges", text="") def draw(self, context): @@ -133,7 +116,7 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel): softbody = md.settings ob = context.object - layout.active = softbody.use_edges and softbody_panel_enabled(md) + layout.active = softbody.use_edges split = layout.split() @@ -172,7 +155,6 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel): def draw_header(self, context): softbody = context.soft_body.settings - self.layout.active = softbody_panel_enabled(context.soft_body) self.layout.prop(softbody, "use_self_collision", text="") def draw(self, context): @@ -181,7 +163,7 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel): md = context.soft_body softbody = md.settings - layout.active = softbody.use_self_collision and softbody_panel_enabled(md) + layout.active = softbody.use_self_collision layout.label(text="Collision Ball Size Calculation:") layout.prop(softbody, "collision_type", expand=True) @@ -203,8 +185,6 @@ class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, Panel): md = context.soft_body softbody = md.settings - layout.active = softbody_panel_enabled(md) - # Solver split = layout.split() |