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:
authorWilliam Reynish <william@reynish.com>2009-07-30 00:56:22 +0400
committerWilliam Reynish <william@reynish.com>2009-07-30 00:56:22 +0400
commit992382ddb3ddd3d225b74bf931fe734ad82ba2fb (patch)
tree5f992aff91728abcd62863ca956521b2678a8e89 /release
parent49faf9011ad09e18ee21a25a58393fdada508623 (diff)
Even more metaball layout changes.
Added icons in menu, moved type setting at top of panel. Need to make the size widgets only show the relevant options.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_metaball.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/release/ui/buttons_data_metaball.py b/release/ui/buttons_data_metaball.py
index b2e2728afe5..009a13df0b7 100644
--- a/release/ui/buttons_data_metaball.py
+++ b/release/ui/buttons_data_metaball.py
@@ -51,7 +51,7 @@ class DATA_PT_metaball(DataButtonsPanel):
layout.itemR(mball, "flag", expand=True)
class DATA_PT_metaball_element(DataButtonsPanel):
- __label__ = "Meta Element"
+ __label__ = "Active Element"
def poll(self, context):
return (context.meta_ball and context.meta_ball.last_selected_element)
@@ -61,6 +61,10 @@ class DATA_PT_metaball_element(DataButtonsPanel):
metaelem = context.meta_ball.last_selected_element
+ split = layout.split(percentage=0.3)
+ split.itemL(text="Type:")
+ split.itemR(metaelem, "type", text="")
+
split = layout.split()
col = split.column()
@@ -70,13 +74,9 @@ class DATA_PT_metaball_element(DataButtonsPanel):
col = split.column()
col.itemL(text="Settings:")
col.itemR(metaelem, "stiffness", text="Stiffness")
+ col.itemR(metaelem, "negative", text="Negative")
+ col.itemR(metaelem, "hide", text="Hide")
- 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)