Bugfix: Node editor, ALT+G "UnGroup" crashed when group was editable.

Now it exits this editing mode, and ungroups nicely.
This commit is contained in:
2006-03-14 21:58:16 +00:00
parent ea9866a75f
commit e91dddc923

View File

@@ -510,8 +510,15 @@ static void snode_make_group_editable(SpaceNode *snode, bNode *gnode)
static void node_ungroup(SpaceNode *snode)
{
bNode *gnode;
/* are we inside of a group? */
gnode= snode_get_editgroup(snode);
if(gnode)
snode_make_group_editable(snode, NULL);
gnode= nodeGetActive(snode->edittree);
if(gnode==NULL) return;
if(gnode->type!=NODE_GROUP)
error("Not a group");
else {