Viewer linking operator has to flag the node tree for update, to ensure the dependenc...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 30 May 2012 14:42:40 +0000 (14:42 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 30 May 2012 14:42:40 +0000 (14:42 +0000)
source/blender/editors/space_node/node_edit.c

index 8ff930ba3acd85c0d60a1222e6646f1082930314..595a9b444f03509c6148eb0def8dbc8d62387c57 100644 (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);