Merge branch 'master' into 28
[blender.git] / source / blender / editors / space_node / drawnode.c
index b6b015e216cc0915b45c8b65d7fa043b26154f33..db174a4e560f7deda9595dc887e5fc5a1c70d687 100644 (file)
@@ -3505,7 +3505,7 @@ void node_draw_link(View2D *v2d, SpaceNode *snode, bNodeLink *link)
                        return;
                if (link->fromsock->flag & SOCK_UNAVAIL)
                        return;
-               if ((link->fromsock->flag & SOCK_VIRTUAL) || (link->fromsock->flag & SOCK_VIRTUAL))
+               if ((link->fromsock->flag & SOCK_VIRTUAL) || (link->tosock->flag & SOCK_VIRTUAL))
                        do_dashed = true;
 
                if (link->flag & NODE_LINK_VALID) {