diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-20 00:37:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 00:37:38 +0200 |
commit | de7293b6eb6f45b44b3467fe25e2a0b6f403ebef (patch) | |
tree | 3d88b126aae7c3dd0865d2b2b6f78bed852dcbaa /editor/editor_node.cpp | |
parent | 9c182b0f45df0f1a134f047899cdd9291c34f58a (diff) | |
parent | 598fd512772eb421717fc5eee4cc519e531e2bfa (diff) | |
download | redot-engine-de7293b6eb6f45b44b3467fe25e2a0b6f403ebef.tar.gz |
Merge pull request #49741 from RandomShaper/fix_save_scene_side_effects
Remove side effects of scene save
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 657ec9d70b..719d3120da 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1625,15 +1625,6 @@ void EditorNode::_save_scene(String p_file, int idx) { return; } - // force creation of node path cache - // (hacky but needed for the tree to update properly) - Node *dummy_scene = sdata->instance(PackedScene::GEN_EDIT_STATE_INSTANCE); - if (!dummy_scene) { - show_accept(TTR("Couldn't save scene. Likely dependencies (instances or inheritance) couldn't be satisfied."), TTR("OK")); - return; - } - memdelete(dummy_scene); - int flg = 0; if (EditorSettings::get_singleton()->get("filesystem/on_save/compress_binary_resources")) { flg |= ResourceSaver::FLAG_COMPRESS; |