diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-05 14:23:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 14:23:43 +0100 |
commit | 54a8bad8fe8706a76315ceded6d13c14b697e8e8 (patch) | |
tree | c1922f1033a040ada4e2986ab70167d77317f393 /editor/editor_node.cpp | |
parent | da502f744efed6bc8db73b299cc6695f8c0201a2 (diff) | |
parent | 3275e8488b59fb8a7a53c4edc0e6755b0ced782c (diff) |
Merge pull request #36700 from ThakeeNathees/scene-tab-bug-fix
Fix possible EditorFolding crash when switching scenes
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 6f8027ba64..43e640b40e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3279,7 +3279,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)) { |