You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Fix crash when inherit in rootless unsaved scene
This commit is contained in:
@@ -1283,7 +1283,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||||||
Node *scene = editor_data.get_edited_scene_root();
|
Node *scene = editor_data.get_edited_scene_root();
|
||||||
// If the previous scene is rootless, just close it in favor of the new one.
|
// If the previous scene is rootless, just close it in favor of the new one.
|
||||||
if (!scene)
|
if (!scene)
|
||||||
_menu_option_confirm(FILE_CLOSE, false);
|
_menu_option_confirm(FILE_CLOSE, true);
|
||||||
|
|
||||||
load_scene(p_file, false, true);
|
load_scene(p_file, false, true);
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user