Fix error in node flag check
This commit is contained in:
@@ -3608,7 +3608,7 @@ void node_draw_link(View2D *v2d, SpaceNode *snode, bNodeLink *link)
|
|||||||
return;
|
return;
|
||||||
if (link->fromsock->flag & SOCK_UNAVAIL)
|
if (link->fromsock->flag & SOCK_UNAVAIL)
|
||||||
return;
|
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;
|
do_dashed = true;
|
||||||
|
|
||||||
if (link->flag & NODE_LINK_VALID) {
|
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;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user