1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Remove side effects of scene save

(cherry picked from commit 598fd51277)
This commit is contained in:
Pedro J. Estébanez
2021-06-19 13:11:30 +02:00
committed by Rémi Verschelde
parent cad2ba013a
commit cd96e30fee
2 changed files with 10 additions and 10 deletions

View File

@@ -1517,15 +1517,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;