Viewer linking operator has to flag the node tree for update, to ensure the dependency sorting is correct (avoid red links).

This commit is contained in:
Lukas Toenne
2012-05-30 14:42:40 +00:00
parent ada8dbe12a
commit f462743dae

View File

@@ -1785,6 +1785,8 @@ static int node_link_viewer(const bContext *C, bNode *tonode)
else {
link->fromnode= tonode;
link->fromsock= sock;
/* make sure the dependency sorting is updated */
snode->edittree->update |= NTREE_UPDATE_LINKS;
}
ntreeUpdateTree(snode->edittree);
snode_update(snode, node);