diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 07:40:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 07:43:28 +0300 |
commit | 4b20eebb85cc5b1e6417c37cdc3c536e4ae7edb9 (patch) | |
tree | 337df57fc3c64487c464e445816dacb7faba0fed /source/blender | |
parent | 3fb7e5df50d25c1d1746c8d85148f33684f85951 (diff) |
UI: only draw a single header in the header region
While this isn't an issue with the default configuration it's possible
to register extra header types for a single region.
In this case the first header-type to successfully poll is drawn
without drawing other header types.
This issue was raised by T60195.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/screen/area.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 58251bbb6d9..f06633c1c92 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -3137,6 +3137,10 @@ void ED_region_header_layout(const bContext *C, ARegion *region) } UI_block_end(C, block); + + /* In most cases there is only ever one header, it never makes sense to draw more than one + * header in the same region, this results in overlapping buttons, see: T60195. */ + break; } if (!region_layout_based) { |