Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.cc
| Show First 20 Lines • Show All 1,977 Lines • ▼ Show 20 Lines | static void node_draw_link_end_marker(const float2 center, | ||||
| const float radius, | const float radius, | ||||
| const ColorTheme4f &color) | const ColorTheme4f &color) | ||||
| { | { | ||||
| rctf rect; | rctf rect; | ||||
| BLI_rctf_init(&rect, center.x - radius, center.x + radius, center.y - radius, center.y + radius); | BLI_rctf_init(&rect, center.x - radius, center.x + radius, center.y - radius, center.y + radius); | ||||
| UI_draw_roundbox_corner_set(UI_CNR_ALL); | UI_draw_roundbox_corner_set(UI_CNR_ALL); | ||||
| UI_draw_roundbox_4fv(&rect, true, radius, color); | UI_draw_roundbox_4fv(&rect, true, radius, color); | ||||
| /* Roundbox disables alpha. Reenable it for node links that are drawn after this one. */ | /* Round-box disables alpha. Re-enable it for node links that are drawn after this one. */ | ||||
| GPU_blend(GPU_BLEND_ALPHA); | GPU_blend(GPU_BLEND_ALPHA); | ||||
| } | } | ||||
| static void node_draw_link_end_markers(const bNodeLink &link, | static void node_draw_link_end_markers(const bNodeLink &link, | ||||
| const NodeLinkDrawConfig &draw_config, | const NodeLinkDrawConfig &draw_config, | ||||
| const std::array<float2, 4> &points, | const std::array<float2, 4> &points, | ||||
| const bool outline) | const bool outline) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 277 Lines • Show Last 20 Lines | |||||