forked from bartvdbraak/blender
* Reverted some superfluous button alignment. The
'Align' should not be overused, it gets quite ugly (and loses communication impact) when used between buttons of different types. Dependencies should be shown via layout and greying out. These lamp panels still needs some cleaning up too...
This commit is contained in:
parent
f75005c2a8
commit
2ee51efd6b
@ -49,7 +49,7 @@ class DATA_PT_lamp(DataButtonsPanel):
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
sub = col.column(align=True)
|
||||
sub = col.column()
|
||||
sub.itemR(lamp, "color", text="")
|
||||
sub.itemR(lamp, "energy")
|
||||
col.itemR(lamp, "negative")
|
||||
@ -67,7 +67,7 @@ class DATA_PT_lamp(DataButtonsPanel):
|
||||
if lamp.type in ('POINT', 'SPOT'):
|
||||
col = split.column()
|
||||
col.itemL(text="Falloff:")
|
||||
sub = col.column(align=True)
|
||||
sub = col.column()
|
||||
sub.itemR(lamp, "falloff_type", text="")
|
||||
sub.itemR(lamp, "distance")
|
||||
col.itemR(lamp, "sphere")
|
||||
@ -84,8 +84,8 @@ class DATA_PT_lamp(DataButtonsPanel):
|
||||
if lamp.type == 'AREA':
|
||||
col = split.column()
|
||||
col.itemL(text="Shape:")
|
||||
col.itemR(lamp, "shape", text="")
|
||||
sub = col.column(align=True)
|
||||
sub.itemR(lamp, "shape", text="")
|
||||
if (lamp.shape == 'SQUARE'):
|
||||
sub.itemR(lamp, "size")
|
||||
elif (lamp.shape == 'RECTANGLE'):
|
||||
@ -311,4 +311,4 @@ bpy.types.register(DATA_PT_lamp)
|
||||
bpy.types.register(DATA_PT_falloff_curve)
|
||||
bpy.types.register(DATA_PT_spot)
|
||||
bpy.types.register(DATA_PT_shadow)
|
||||
bpy.types.register(DATA_PT_sunsky)
|
||||
bpy.types.register(DATA_PT_sunsky)
|
Loading…
Reference in New Issue
Block a user