diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-10-12 17:53:03 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-10-12 17:53:03 +0400 |
commit | da0354e0541f58a8b48f403e31ba09a5ece5e962 (patch) | |
tree | 87ed89ecae770982f3f0da87547dfc751dd7614e /source/blender/nodes/intern | |
parent | 4689d78b5c739ed67d915d46972de9c5d8404c48 (diff) |
Free cache data when creating a new group from selected nodes. This would leave unfreed memory behind otherwise, since node groups don't have internal caches.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r-- | source/blender/nodes/intern/node_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_common.c b/source/blender/nodes/intern/node_common.c index fa5a3c727c2..56f80840112 100644 --- a/source/blender/nodes/intern/node_common.c +++ b/source/blender/nodes/intern/node_common.c @@ -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; |