Fix T45847: Pie looses focus when mouse cursor passes through a pie button

This commit is contained in:
Julian Eisel
2015-08-19 20:53:16 +02:00
parent 5668fc0938
commit 5c659574e6

View File

@@ -223,7 +223,7 @@ void ui_region_to_window(const ARegion *ar, int *x, int *y)
void ui_region_winrct_get_no_margin(const struct ARegion *ar, struct rcti *r_rect)
{
uiBlock *block = ar->uiblocks.first;
if (block && block->flag & UI_BLOCK_LOOP) {
if (block && (block->flag & UI_BLOCK_LOOP) && (block->flag & UI_BLOCK_RADIAL) == 0) {
BLI_rcti_rctf_copy_floor(r_rect, &block->rect);
BLI_rcti_translate(r_rect, ar->winrct.xmin, ar->winrct.ymin);
}