[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60703] trunk/blender/source/blender/ editors/interface/interface.c: Fix #37047, Expanded Enum Alignment glitching.

Lukas Toenne lukas.toenne at googlemail.com
Sat Oct 12 13:05:12 CEST 2013


Revision: 60703
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60703
Author:   lukastoenne
Date:     2013-10-12 11:05:12 +0000 (Sat, 12 Oct 2013)
Log Message:
-----------
Fix #37047, Expanded Enum Alignment glitching.
The enum item buttons in the node header change their alignr when switching the tree type, due to different things being shown in the header (this rarely happens in other panels, so it doesn't turn
up easily). The new alignnr needs to be copied to existing block buttons in ui_but_update_from_old_block to ensure the enum items get aligned to each other.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface.c

Modified: trunk/blender/source/blender/editors/interface/interface.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface.c	2013-10-12 11:03:32 UTC (rev 60702)
+++ trunk/blender/source/blender/editors/interface/interface.c	2013-10-12 11:05:12 UTC (rev 60703)
@@ -662,6 +662,7 @@
 				/* drawing */
 				oldbut->icon = but->icon;
 				oldbut->iconadd = but->iconadd;
+				oldbut->alignnr = but->alignnr;
 				
 				/* typically the same pointers, but not on undo/redo */
 				/* XXX some menu buttons store button itself in but->poin. Ugly */




More information about the Bf-blender-cvs mailing list