* Reverted some superfluous button alignment. The
authorMatt Ebb <matt@mke3.net>
Wed, 29 Jul 2009 13:33:14 +0000 (13:33 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 29 Jul 2009 13:33:14 +0000 (13:33 +0000)
'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...

release/ui/buttons_data_lamp.py

index 4a61684c8e21df68e6fc284ec903a0ab0bdb32f6..dbc00ec0c390edcfdeb1a6ff65b354ac3eb7dbf0 100644 (file)
@@ -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)
\ No newline at end of file