[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22013] branches/blender2.5/blender/ release/ui/buttons_data_lamp.py: * Reverted some superfluous button alignment.
Matt Ebb
matt at mke3.net
Wed Jul 29 15:33:14 CEST 2009
Revision: 22013
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22013
Author: broken
Date: 2009-07-29 15:33:14 +0200 (Wed, 29 Jul 2009)
Log Message:
-----------
* 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...
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/buttons_data_lamp.py
Modified: branches/blender2.5/blender/release/ui/buttons_data_lamp.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_data_lamp.py 2009-07-29 12:35:09 UTC (rev 22012)
+++ branches/blender2.5/blender/release/ui/buttons_data_lamp.py 2009-07-29 13:33:14 UTC (rev 22013)
@@ -49,7 +49,7 @@
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 @@
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 @@
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_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
More information about the Bf-blender-cvs
mailing list