diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-10-12 15:05:12 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-10-12 15:05:12 +0400 |
commit | e192f5b19834813a94abd31cb7b299d1b9351b7d (patch) | |
tree | 2a3a77fcfa5f6ccfc9a6039cbd8396c8743120ce /source/blender/editors/interface/interface.c | |
parent | c7109b152eaf3c9e216fe5304a3f5daf55135da9 (diff) |
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.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 4fc2fb9ab95..3bad2577409 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -662,6 +662,7 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut /* 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 */ |