Free cache data when creating a new group from selected nodes. This would leave unfre...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 12 Oct 2011 13:53:03 +0000 (13:53 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 12 Oct 2011 13:53:03 +0000 (13:53 +0000)
source/blender/nodes/intern/node_common.c

index fa5a3c727c2df6b10b15879de01edbb81dd537ad..56f808401128b03926c6791e609b731c9477e4a7 100644 (file)
@@ -199,6 +199,9 @@ bNode *node_group_make_from_selected(bNodeTree *ntree)
                }
        }
        
+       /* node groups don't use internal cached data */
+       ntreeFreeCache(ngroup);
+       
        /* make group node */
        ntemp.type = NODE_GROUP;
        ntemp.ngroup = ngroup;