Merging r47740 through r47782 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenkernel / intern / node.c
index 3e5f3f5b24cbc46b5d934f58c79e0c86656ddf42..7fe4016f68000ff4818e208d43b245e073967781 100644 (file)
@@ -1313,6 +1313,17 @@ void nodeClearActiveID(bNodeTree *ntree, short idtype)
                        node->flag &= ~NODE_ACTIVE_ID;
 }
 
+void nodeClearActive(bNodeTree *ntree)
+{
+       bNode *node;
+
+       if (ntree==NULL) return;
+
+       for (node= ntree->nodes.first; node; node= node->next)
+               node->flag &= ~(NODE_ACTIVE | NODE_ACTIVE_ID);
+}
+
+
 /* two active flags, ID nodes have special flag for buttons display */
 void nodeSetActive(bNodeTree *ntree, bNode *node)
 {