Fix T93184: Link color not used for custom sockets
D13044 allowed the link color overlay to be used with custom sockets. This no longer works due to a condition that checks if the socket is standard or not, which was in place to avoid bad indexing of the std_node_socket_colors array. Since that array is no longer used, this condition needs to be removed. Differential Revision: https://developer.blender.org/D13274 Reviewed By: Hans Goudey
This commit is contained in:
parent
fa6a913ef1
commit
a20e703d1a
Notes:
blender-bot
2023-02-14 02:30:11 +01:00
Referenced by issue #93184, Regression: Socket type info color to draw links not working
|
@ -4313,9 +4313,7 @@ void node_draw_link_bezier(const bContext *C,
|
|||
}
|
||||
|
||||
if (snode->overlay.flag & SN_OVERLAY_SHOW_OVERLAYS &&
|
||||
snode->overlay.flag & SN_OVERLAY_SHOW_WIRE_COLORS &&
|
||||
((link->fromsock == nullptr || link->fromsock->typeinfo->type >= 0) &&
|
||||
(link->tosock == nullptr || link->tosock->typeinfo->type >= 0))) {
|
||||
snode->overlay.flag & SN_OVERLAY_SHOW_WIRE_COLORS) {
|
||||
PointerRNA from_node_ptr, to_node_ptr;
|
||||
RNA_pointer_create((ID *)snode->edittree, &RNA_Node, link->fromnode, &from_node_ptr);
|
||||
RNA_pointer_create((ID *)snode->edittree, &RNA_Node, link->tonode, &to_node_ptr);
|
||||
|
|
Loading…
Reference in New Issue