Skip to content

Commit

Permalink
Removed dummy scene during saving
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Apr 12, 2021
1 parent cee5414 commit 808e3f3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1588,15 +1588,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;
Expand Down

0 comments on commit 808e3f3

Please sign in to comment.