Fix error in node flag check
This commit is contained in:
parent
15189baa52
commit
6abcd6cfd5
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue