Fix #21077: multiple python headers in an area header not working correct,

each needs a unique ui block name.
This commit is contained in:
Brecht Van Lommel 2010-07-23 17:26:00 +00:00
parent b3dca80c5b
commit 72689deb63

@ -1427,7 +1427,7 @@ void ED_region_header(const bContext *C, ARegion *ar)
/* draw all headers types */
for(ht= ar->type->headertypes.first; ht; ht= ht->next) {
block= uiBeginBlock(C, ar, "header buttons", UI_EMBOSS);
block= uiBeginBlock(C, ar, ht->idname, UI_EMBOSS);
layout= uiBlockLayout(block, UI_LAYOUT_HORIZONTAL, UI_LAYOUT_HEADER, xco, yco, HEADERY-6, 1, style);
if(ht->draw) {