Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Context not available. | |||||
| glEnable(GL_BLEND); | glEnable(GL_BLEND); | ||||
| glEnable(GL_LINE_SMOOTH); | glEnable(GL_LINE_SMOOTH); | ||||
| if (node->flag & NODE_ACTIVE) | |||||
| UI_ThemeColorShadeAlpha(TH_ACTIVE, 0, -40); | |||||
| else | |||||
| UI_ThemeColorShadeAlpha(TH_SELECT, 0, -40); | |||||
| UI_draw_roundbox_corner_set(UI_CNR_ALL); | UI_draw_roundbox_corner_set(UI_CNR_ALL); | ||||
| UI_draw_roundbox_gl_mode(GL_LINE_LOOP, | if (node->flag & NODE_ACTIVE) { | ||||
| rct->xmin, rct->ymin, | unsigned char coloruc[4]; | ||||
| rct->xmax, rct->ymax, BASIS_RAD); | UI_GetThemeColorShade4ubv(TH_ACTIVE, -40, coloruc); | ||||
| UI_draw_roundbox_gl_mode(GL_LINE_LOOP, rct->xmin, rct->ymin, rct->xmax, rct->ymax, BASIS_RAD, coloruc); | |||||
| } | |||||
| else { | |||||
| unsigned char coloruc[4]; | |||||
| UI_GetThemeColorShade4ubv(TH_ACTIVE, -40, coloruc); | |||||
| UI_draw_roundbox_gl_mode(GL_LINE_LOOP, rct->xmin, rct->ymin, rct->xmax, rct->ymax, BASIS_RAD, coloruc); | |||||
| } | |||||
| glDisable(GL_LINE_SMOOTH); | glDisable(GL_LINE_SMOOTH); | ||||
| glDisable(GL_BLEND); | glDisable(GL_BLEND); | ||||
| } | } | ||||
| Context not available. | |||||