Fix Editor crash during first scan in headless import mode.

This commit is contained in:
Mounir Tohami 2025-07-26 14:03:45 +03:00
parent 0dd9178269
commit aa086fa0d5
3 changed files with 4 additions and 8 deletions

View file

@ -950,6 +950,7 @@ void EditorData::clear_edited_scenes() {
}
}
edited_scene.clear();
SceneTree::get_singleton()->set_edited_scene_root(nullptr);
}
void EditorData::set_plugin_window_layout(Ref<ConfigFile> p_layout) {