Cycles UI:
authorThomas Dinges <blender@dingto.org>
Sun, 22 Jan 2012 22:43:21 +0000 (22:43 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 22 Jan 2012 22:43:21 +0000 (22:43 +0000)
* Use full width for the world sample as lamp properties

intern/cycles/blender/addon/ui.py

index 67ff79a20379de3b7ba3029c098de00605298420..94918345db923e560e0271cc2b7ce46882fef844 100644 (file)
@@ -337,16 +337,13 @@ class CyclesObject_PT_ray_visibility(CyclesButtonsPanel, Panel):
         ob = context.object
         visibility = ob.cycles_visibility
 
-        split = layout.split()
-
-        col = split.column()
-        col.prop(visibility, "camera")
-        col.prop(visibility, "diffuse")
-        col.prop(visibility, "glossy")
-
-        col = split.column()
-        col.prop(visibility, "transmission")
-        col.prop(visibility, "shadow")
+        flow = layout.column_flow()
+        
+        flow.prop(visibility, "camera")
+        flow.prop(visibility, "diffuse")
+        flow.prop(visibility, "glossy")
+        flow.prop(visibility, "transmission")
+        flow.prop(visibility, "shadow")
 
 
 def find_node(material, nodetype):
@@ -473,17 +470,13 @@ class CyclesWorld_PT_settings(CyclesButtonsPanel, Panel):
         world = context.world
         cworld = world.cycles
 
-        split = layout.split()
-        col = split.column()
+        col = layout.column()
 
         col.prop(cworld, "sample_as_light")
         row = col.row()
         row.active = cworld.sample_as_light
         row.prop(cworld, "sample_map_resolution")
 
-        col = split.column()
-        col.label()
-
 
 class CyclesWorld_PT_volume(CyclesButtonsPanel, Panel):
     bl_label = "Volume"