Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-07-29 22:44:54 +0400
committerThomas Dinges <blender@dingto.org>2009-07-29 22:44:54 +0400
commit2621dd90e39e7d447255d86a7111641d2098e404 (patch)
tree94dbf9d1d1c4dde8075b3eb78453c98fd7ad9176 /release
parentda14738624117d54aa088a192e72b9270cdcf5d9 (diff)
2.5 MetaBalls:
* Layout tweaks by nudelZ. Thanks!
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_metaball.py38
1 files changed, 25 insertions, 13 deletions
diff --git a/release/ui/buttons_data_metaball.py b/release/ui/buttons_data_metaball.py
index 03f489aeb9b..b2e2728afe5 100644
--- a/release/ui/buttons_data_metaball.py
+++ b/release/ui/buttons_data_metaball.py
@@ -35,16 +35,20 @@ class DATA_PT_metaball(DataButtonsPanel):
mball = context.meta_ball
- col = layout.column()
+ split = layout.split()
+ col = split.column()
+ col.itemL(text="Resolution:")
+ sub = col.column(align=True)
+ sub.itemR(mball, "wire_size", text="View")
+ sub.itemR(mball, "render_size", text="Render")
+
+ col = split.column()
col.itemL(text="Settings:")
col.itemR(mball, "threshold", text="Threshold")
- col.itemL(text="Resolution:")
- col = layout.column(align=True)
- col.itemR(mball, "wire_size", text="View")
- col.itemR(mball, "render_size", text="Render")
-
- layout.itemR(mball, "flag")
+
+ layout.itemL(text="Update:")
+ layout.itemR(mball, "flag", expand=True)
class DATA_PT_metaball_element(DataButtonsPanel):
__label__ = "Meta Element"
@@ -57,14 +61,22 @@ class DATA_PT_metaball_element(DataButtonsPanel):
metaelem = context.meta_ball.last_selected_element
- col = layout.column()
-
+ split = layout.split()
+
+ col = split.column()
+ col.itemL(text="Size:")
+ col.itemR(metaelem, "size", text="")
+
+ col = split.column()
col.itemL(text="Settings:")
col.itemR(metaelem, "stiffness", text="Stiffness")
- col.itemR(metaelem, "size", text="Size")
- col.itemL(text="Type:")
- col.row().itemR(metaelem, "type", expand=True)
- col.itemR(metaelem, "negative", text="Negative")
+
+ layout.itemL(text="Type:")
+ layout.itemR(metaelem, "type", expand=True)
+
+ flow = layout.column_flow()
+ flow.itemR(metaelem, "negative", text="Negative")
+ flow.itemR(metaelem, "hide", text="Hide")
bpy.types.register(DATA_PT_context_metaball)
bpy.types.register(DATA_PT_metaball)