* Minor Cleanup.
This commit is contained in:
parent
adb14a2247
commit
07db9033c9
@ -484,15 +484,14 @@ class MATERIAL_PT_sss(MaterialButtonsPanel):
|
|||||||
sss = mat.subsurface_scattering
|
sss = mat.subsurface_scattering
|
||||||
wide_ui = context.region.width > narrowui
|
wide_ui = context.region.width > narrowui
|
||||||
|
|
||||||
|
layout.active = (sss.enabled) and (not mat.shadeless)
|
||||||
|
|
||||||
row = layout.row().split()
|
row = layout.row().split()
|
||||||
sub = row.row(align=True).split(percentage=0.75)
|
sub = row.row(align=True).split(percentage=0.75)
|
||||||
sub.itemM("MATERIAL_MT_sss_presets", text="Presets")
|
sub.itemM("MATERIAL_MT_sss_presets", text="Presets")
|
||||||
sub.itemO("material.sss_preset_add", text="Add")
|
sub.itemO("material.sss_preset_add", text="Add")
|
||||||
|
|
||||||
layout.active = sss.enabled
|
|
||||||
|
|
||||||
split = layout.split()
|
split = layout.split()
|
||||||
split.active = (not mat.shadeless)
|
|
||||||
|
|
||||||
col = split.column()
|
col = split.column()
|
||||||
col.itemR(sss, "ior")
|
col.itemR(sss, "ior")
|
||||||
|
@ -486,7 +486,6 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
|
|||||||
sub = row.row(align=True).split(percentage=0.75)
|
sub = row.row(align=True).split(percentage=0.75)
|
||||||
sub.itemM("RENDER_MT_presets", text="Presets")
|
sub.itemM("RENDER_MT_presets", text="Presets")
|
||||||
sub.itemO("render.preset_add", text="Add")
|
sub.itemO("render.preset_add", text="Add")
|
||||||
row.itemL()
|
|
||||||
|
|
||||||
split = layout.split()
|
split = layout.split()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user