diff options
| author | Pedro J. Estébanez | 2017-03-08 20:08:24 +0100 |
|---|---|---|
| committer | Pedro J. Estébanez | 2017-03-09 01:19:40 +0100 |
| commit | 383dea5796d791c89678fe1aea384d42e9f3de8d (patch) | |
| tree | d85137006d2b10e2b5af20b39b1163490d4cc886 /editor/editor_node.cpp | |
| parent | 616334311875da66e1a28a4d92efa1df245815c9 (diff) | |
| download | godot-383dea5796d791c89678fe1aea384d42e9f3de8d.tar.gz godot-383dea5796d791c89678fe1aea384d42e9f3de8d.tar.zst godot-383dea5796d791c89678fe1aea384d42e9f3de8d.zip | |
Fix node duplication in scene sub-inheritance
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 00df0f337..24d94c8d4 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -925,6 +925,11 @@ 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); + memdelete(dummy_scene); + int flg = 0; if (EditorSettings::get_singleton()->get("filesystem/on_save/compress_binary_resources")) flg |= ResourceSaver::FLAG_COMPRESS; |
