Tweak/code shuffle to make disabled buttons draw nicer on nodes.
This commit is contained in:
@@ -749,8 +749,6 @@ void uiDrawBlock(const bContext *C, uiBlock *block)
|
||||
|
||||
wmOrtho2(-0.01f, ar->winx-0.01f, -0.01f, ar->winy-0.01f);
|
||||
|
||||
UI_ThemeClearColor(TH_BACK);
|
||||
|
||||
/* back */
|
||||
if(block->flag & UI_BLOCK_LOOP)
|
||||
ui_draw_menu_back(&style, block, &rect);
|
||||
|
||||
@@ -864,6 +864,8 @@ void uiEndPanels(const bContext *C, ARegion *ar)
|
||||
if(firstpa)
|
||||
firstpa->runtime_flag |= PNL_FIRST;
|
||||
|
||||
UI_ThemeClearColor(TH_BACK);
|
||||
|
||||
/* draw panels, selected on top */
|
||||
for(block= ar->uiblocks.first; block; block=block->next) {
|
||||
if(block->active && block->panel && !(block->panel->flag & PNL_SELECT)) {
|
||||
|
||||
@@ -845,6 +845,8 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
|
||||
node_draw_preview(node->preview, &node->prvr);
|
||||
BLI_unlock_thread(LOCK_PREVIEW);
|
||||
}
|
||||
|
||||
UI_ThemeClearColor(color_id);
|
||||
|
||||
uiEndBlock(C, node->block);
|
||||
uiDrawBlock(C, node->block);
|
||||
|
||||
Reference in New Issue
Block a user