[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20296] branches/blender2.5/blender/source /blender/editors/interface/interface.c: 2.5

Ton Roosendaal ton at blender.org
Wed May 20 16:47:48 CEST 2009


Revision: 20296
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20296
Author:   ton
Date:     2009-05-20 16:47:48 +0200 (Wed, 20 May 2009)

Log Message:
-----------
2.5

Undid fix from matt to prevent tog button alignment, this is not
working that way... made UI look very bad (like layer buttons)

The new code has 'toggle' and 'option' button types, with the
latter being the new style, and first for icon rows, layers, etc.

Purpose is that RNA or py api would allow to distinguish.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/interface/interface.c

Modified: branches/blender2.5/blender/source/blender/editors/interface/interface.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/interface/interface.c	2009-05-20 14:46:49 UTC (rev 20295)
+++ branches/blender2.5/blender/source/blender/editors/interface/interface.c	2009-05-20 14:47:48 UTC (rev 20296)
@@ -1987,7 +1987,7 @@
 
 int ui_but_can_align(uiBut *but)
 {
-	return !ELEM3(but->type, LABEL, ROUNDBOX, TOG);
+	return !ELEM(but->type, LABEL, ROUNDBOX);
 }
 
 static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)





More information about the Bf-blender-cvs mailing list