* Minor Cleanup.
authorThomas Dinges <blender@dingto.org>
Sun, 22 Nov 2009 10:06:08 +0000 (10:06 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 22 Nov 2009 10:06:08 +0000 (10:06 +0000)
release/scripts/ui/properties_material.py
release/scripts/ui/properties_render.py

index 8a5f359a35500d0e685e05cc0adc5d514b7090da..e9b898e5c9f3496e98e566c95ca5ae49fd4c6708 100644 (file)
@@ -483,16 +483,15 @@ class MATERIAL_PT_sss(MaterialButtonsPanel):
         mat = active_node_mat(context.material)
         sss = mat.subsurface_scattering
         wide_ui = context.region.width > narrowui
+        
+        layout.active = (sss.enabled) and (not mat.shadeless)
 
         row = layout.row().split()
         sub = row.row(align=True).split(percentage=0.75)
         sub.itemM("MATERIAL_MT_sss_presets", text="Presets")
         sub.itemO("material.sss_preset_add", text="Add")
 
-        layout.active = sss.enabled
-
         split = layout.split()
-        split.active = (not mat.shadeless)
 
         col = split.column()
         col.itemR(sss, "ior")
index cc19a068f6035bfd56dba69676784b43a8d2fc01..675eba006c2d85bf96d21c273be7eb023698a1ea 100644 (file)
@@ -486,7 +486,6 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
         sub = row.row(align=True).split(percentage=0.75)
         sub.itemM("RENDER_MT_presets", text="Presets")
         sub.itemO("render.preset_add", text="Add")
-        row.itemL()
 
         split = layout.split()