Fix #21077: multiple python headers in an area header not working correct,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 17:26:00 +0000 (17:26 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 17:26:00 +0000 (17:26 +0000)
each needs a unique ui block name.

source/blender/editors/screen/area.c

index fa7064b..b5a0ad9 100644 (file)
@@ -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) {