Fix error in node flag check

This commit is contained in:
Campbell Barton 2017-05-04 02:57:39 +10:00
parent 15189baa52
commit 6abcd6cfd5
2 changed files with 2 additions and 2 deletions

View File

@ -3608,7 +3608,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) {

View File

@ -193,7 +193,7 @@ void node_cmp_rlayers_register_pass(bNodeTree *ntree, bNode *node, Scene *scene,
{
RLayerUpdateData *data = node->storage;
if (scene == NULL || srl == NULL || data == NULL || node->id != scene) {
if (scene == NULL || srl == NULL || data == NULL || node->id != (ID *)scene) {
return;
}