forked from bartvdbraak/blender
Added a check in nodeGroupVerify to detect if a tree is actually a group tree. This is necessary to avoid the group-in-group error if the function is called for a tree that already contains group nodes.
This commit is contained in:
parent
08dc18fda0
commit
bee3d78393
@ -615,6 +615,12 @@ bNode *nodeMakeGroupFromSelected(bNodeTree *ntree)
|
||||
/* should become callbackable... */
|
||||
void nodeVerifyGroup(bNodeTree *ngroup)
|
||||
{
|
||||
/* XXX nodeVerifyGroup is sometimes called for non-group trees.
|
||||
* This is not the best way to check if a tree is a group,
|
||||
* trees should get their own flag for this!
|
||||
*/
|
||||
if (!ngroup->owntype)
|
||||
return;
|
||||
|
||||
/* group changed, so we rebuild the type definition */
|
||||
ntreeMakeOwnType(ngroup);
|
||||
|
Loading…
Reference in New Issue
Block a user