diff options
author | Thomas Dinges <blender@dingto.org> | 2009-11-19 15:58:19 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-11-19 15:58:19 +0300 |
commit | d3600a92dc124db8c35ee6bbe8d2ba860a490731 (patch) | |
tree | e45b85f41c3031cbe30831d64898bf0df0eb64f9 /release/scripts/ui/properties_physics_softbody.py | |
parent | 3b4c9d9699efe5bdfb0cc2ce8f4518a5c19c60f2 (diff) |
Single Column layout for Fields, Smoke, Cloth and Fluids.
Patch by nudelZ.
Diffstat (limited to 'release/scripts/ui/properties_physics_softbody.py')
-rw-r--r-- | release/scripts/ui/properties_physics_softbody.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/ui/properties_physics_softbody.py b/release/scripts/ui/properties_physics_softbody.py index 8d27989a7d8..115343eac2a 100644 --- a/release/scripts/ui/properties_physics_softbody.py +++ b/release/scripts/ui/properties_physics_softbody.py @@ -19,6 +19,8 @@ # <pep8 compliant> import bpy +narrowui = 180 + from properties_physics_common import point_cache_ui from properties_physics_common import effector_weights_ui @@ -47,6 +49,7 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel): md = context.soft_body ob = context.object + col2 = context.region.width > narrowui split = layout.split() split.operator_context = 'EXEC_DEFAULT' @@ -62,7 +65,8 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel): else: # add modifier split.item_enumO("object.modifier_add", "type", 'SOFT_BODY', text="Add") - split.itemL("") + if col2: + split.column() if md: softbody = md.settings |