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 12:30:57 +0400
committerWilliam Reynish <william@reynish.com>2009-07-30 12:30:57 +0400
commit249c5fcddc5546a7fa86c48d6752812e44e98c64 (patch)
treef9bc3b7c9c6c0b815c8ea5a46ce62c9ee1dc987e /release
parentade8f5197a1971839253bb8d30eac676d5868e1c (diff)
World UI
Cleaned up AO influence controls. These buttons had no labels, and were aligned strangely. Also made mist intensity a slider, since it's a percentage.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_world.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/release/ui/buttons_world.py b/release/ui/buttons_world.py
index 1a51bf7676d..62c720d09d1 100644
--- a/release/ui/buttons_world.py
+++ b/release/ui/buttons_world.py
@@ -86,7 +86,7 @@ class WORLD_PT_mist(WorldButtonsPanel):
flow.itemR(world.mist, "start")
flow.itemR(world.mist, "depth")
flow.itemR(world.mist, "height")
- flow.itemR(world.mist, "intensity")
+ flow.itemR(world.mist, "intensity", slider=True)
layout.itemR(world.mist, "falloff")
@@ -163,12 +163,21 @@ class WORLD_PT_ambient_occlusion(WorldButtonsPanel):
col.itemR(ao, "pixel_cache")
col.itemR(ao, "correction")
- col = layout.column(align=True)
+ col = layout.column()
col.itemL(text="Influence:")
- row = col.row()
- row.itemR(ao, "blend_mode", text="")
- row.itemR(ao, "color", text="")
- row.itemR(ao, "energy", text="")
+
+ col.row().itemR(ao, "blend_mode", expand=True)
+
+ split = layout.split()
+
+ col = split.column()
+ col.itemR(ao, "energy")
+
+ col = split.column()
+ colsub = col.split(percentage=0.3)
+ colsub.itemL(text="Color:")
+ colsub.itemR(ao, "color", text="")
+
bpy.types.register(WORLD_PT_context_world)
bpy.types.register(WORLD_PT_preview)