Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.cc
| Show First 20 Lines • Show All 4,276 Lines • ▼ Show 20 Lines | if (link->flag & NODE_LINK_VALID) { | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| /* Invalid link. */ | /* Invalid link. */ | ||||
| th_col1 = th_col2 = th_col3 = TH_REDALERT; | th_col1 = th_col2 = th_col3 = TH_REDALERT; | ||||
| // th_col3 = -1; /* no shadow */ | // th_col3 = -1; /* no shadow */ | ||||
| } | } | ||||
| } | } | ||||
| if (snode->edittree->type == NTREE_GEOMETRY && !(link->flag & NODE_LINK_DRAGGED)) { | |||||
| if ((link->fromsock && link->fromsock->display_shape == SOCK_DISPLAY_SHAPE_DIAMOND) && | |||||
| (link->tosock && link->tosock->display_shape == SOCK_DISPLAY_SHAPE_CIRCLE)) { | |||||
| th_col1 = th_col2 = th_col3 = TH_REDALERT; | |||||
| } | |||||
| } | |||||
| node_draw_link_bezier(v2d, snode, link, th_col1, th_col2, th_col3); | node_draw_link_bezier(v2d, snode, link, th_col1, th_col2, th_col3); | ||||
| } | } | ||||
| void ED_node_draw_snap(View2D *v2d, const float cent[2], float size, NodeBorder border, uint pos) | void ED_node_draw_snap(View2D *v2d, const float cent[2], float size, NodeBorder border, uint pos) | ||||
| { | { | ||||
| immBegin(GPU_PRIM_LINES, 4); | immBegin(GPU_PRIM_LINES, 4); | ||||
| Show All 20 Lines | |||||