mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-14 10:25:27 +00:00
Fix EditorFolding crash when switching scenes
(cherry picked from commit 3275e8488b)
This commit is contained in:
committed by
Rémi Verschelde
parent
4c325c0732
commit
15057c9284
@@ -3246,7 +3246,7 @@ void EditorNode::_clear_undo_history() {
|
||||
void EditorNode::set_current_scene(int p_idx) {
|
||||
|
||||
//Save the folding in case the scene gets reloaded.
|
||||
if (editor_data.get_scene_path(p_idx) != "")
|
||||
if (editor_data.get_scene_path(p_idx) != "" && editor_data.get_edited_scene_root(p_idx))
|
||||
editor_folding.save_scene_folding(editor_data.get_edited_scene_root(p_idx), editor_data.get_scene_path(p_idx));
|
||||
|
||||
if (editor_data.check_and_update_scene(p_idx)) {
|
||||
|
||||
Reference in New Issue
Block a user