Temporary fix for [#23848] Image too small Error
* This should be fixed properly later when general window close/resize problems in the todo list are tackled.
This commit is contained in:
@@ -753,7 +753,10 @@ void uiDrawBlock(const bContext *C, uiBlock *block)
|
||||
/* widgets */
|
||||
for(but= block->buttons.first; but; but= but->next) {
|
||||
ui_but_to_pixelrect(&rect, ar, block, but);
|
||||
if(!(but->flag & UI_HIDDEN))
|
||||
if(!(but->flag & UI_HIDDEN) &&
|
||||
/* XXX: figure out why invalid coordinates happen when closing render window */
|
||||
/* and material preview is redrawn in main window (temp fix for bug #23848) */
|
||||
rect.xmin < rect.xmax && rect.ymin < rect.ymax)
|
||||
ui_draw_but(C, ar, &style, but, &rect);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user