You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Fix crash from move_child at saving scene
This commit is contained in:
@@ -340,7 +340,8 @@ void Node::move_child(Node *p_child, int p_pos) {
|
|||||||
data.children[i]->notification(NOTIFICATION_MOVED_IN_PARENT);
|
data.children[i]->notification(NOTIFICATION_MOVED_IN_PARENT);
|
||||||
}
|
}
|
||||||
for (const Map<StringName, GroupData>::Element *E = p_child->data.grouped.front(); E; E = E->next()) {
|
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--;
|
data.blocked--;
|
||||||
|
|||||||
Reference in New Issue
Block a user