Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_draw.cc
| Show First 20 Lines • Show All 1,398 Lines • ▼ Show 20 Lines | uiDefIconBut(node->block, | ||||
| nullptr, | nullptr, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| ""); | ""); | ||||
| UI_block_emboss_set(node->block, UI_EMBOSS); | UI_block_emboss_set(node->block, UI_EMBOSS); | ||||
| } | } | ||||
| if (ntree->type == NTREE_GEOMETRY) { | |||||
| /* Active preview toggle. */ | |||||
| iconofs -= iconbutw; | |||||
| UI_block_emboss_set(node->block, UI_EMBOSS_NONE); | |||||
| int icon = (node->flag & NODE_ACTIVE_PREVIEW) ? ICON_RESTRICT_VIEW_OFF : ICON_RESTRICT_VIEW_ON; | |||||
| uiBut *but = uiDefIconBut(node->block, | |||||
| UI_BTYPE_BUT_TOGGLE, | |||||
| 0, | |||||
| icon, | |||||
| iconofs, | |||||
| rct->ymax - NODE_DY, | |||||
| iconbutw, | |||||
| UI_UNIT_Y, | |||||
| nullptr, | |||||
| 0, | |||||
| 0, | |||||
| 0, | |||||
| 0, | |||||
| "Show this node's geometry output in the spreadsheet"); | |||||
| UI_but_func_set(but, node_toggle_button_cb, node, (void *)"NODE_OT_active_preview_toggle"); | |||||
| UI_block_emboss_set(node->block, UI_EMBOSS); | |||||
| } | |||||
| node_add_error_message_button(C, *ntree, *node, *rct, iconofs); | node_add_error_message_button(C, *ntree, *node, *rct, iconofs); | ||||
| /* Title. */ | /* Title. */ | ||||
| if (node->flag & SELECT) { | if (node->flag & SELECT) { | ||||
| UI_GetThemeColor4fv(TH_SELECT, color); | UI_GetThemeColor4fv(TH_SELECT, color); | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 654 Lines • Show Last 20 Lines | |||||