Partial fix for #30606. In node tree updates also update the sock->link pointers...
authorLukas Toenne <lukas.toenne@googlemail.com>
Tue, 20 Mar 2012 16:59:00 +0000 (16:59 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Tue, 20 Mar 2012 16:59:00 +0000 (16:59 +0000)
source/blender/blenkernel/intern/node.c

index 721874c83c2d55725134424d17f94557660b16f8..d319cfe60fcbb729d884abf29e884c2e26f28d72 100644 (file)
@@ -1543,13 +1543,13 @@ void ntreeUpdateTree(bNodeTree *ntree)
        bNodeTreeType *ntreetype= ntreeGetType(ntree->type);
        bNode *node;
        
-       /* set the bNodeSocket->link pointers */
-       if (ntree->update & NTREE_UPDATE_LINKS)
+       if (ntree->update & (NTREE_UPDATE_LINKS|NTREE_UPDATE_NODES)) {
+               /* set the bNodeSocket->link pointers */
                ntree_update_link_pointers(ntree);
-       
-       /* update the node level from link dependencies */
-       if (ntree->update & (NTREE_UPDATE_LINKS|NTREE_UPDATE_NODES))
+               
+               /* update the node level from link dependencies */
                ntree_update_node_level(ntree);
+       }
        
        /* update individual nodes */
        for (node=ntree->nodes.first; node; node=node->next) {