Fix crash from move_child at saving scene
This commit is contained in:
parent
3068ccc8e6
commit
d6a88cdc41
1 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,8 @@ void Node::move_child(Node *p_child, int p_pos) {
|
|||
data.children[i]->notification(NOTIFICATION_MOVED_IN_PARENT);
|
||||
}
|
||||
for (const Map<StringName, GroupData>::Element *E = p_child->data.grouped.front(); E; E = E->next()) {
|
||||
E->get().group->changed = true;
|
||||
if (E->get().group)
|
||||
E->get().group->changed = true;
|
||||
}
|
||||
|
||||
data.blocked--;
|
||||
|
|
Loading…
Reference in a new issue