* Minor Cleanup.
This commit is contained in:
parent
adb14a2247
commit
07db9033c9
@ -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")
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user