From 1bdd5d24cb2d8d6c7cd16da2fe0ba833d064d539 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Sat, 5 Mar 2016 12:29:16 -0300 Subject: [PATCH] Removed "__editor_plugin_screen__" metadata creation (cherry picked from commit b79e83ad6ff438aed4761a281eec33ed2f2eee26) --- tools/editor/editor_node.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index ea887fe18bb..789dee4db0e 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -980,11 +980,6 @@ void EditorNode::_save_scene(String p_file) { editor_data.apply_changes_in_editors(); - if (editor_plugin_screen) { - scene->set_meta("__editor_plugin_screen__",editor_plugin_screen->get_name()); - } - - _set_scene_metadata(p_file); @@ -3598,26 +3593,12 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo */ editor_data.set_edited_scene_import_metadata( sdata->get_import_metadata() ); - // editor_data.get_undo_redo().clear_history(); saved_version=editor_data.get_undo_redo().get_version(); _update_title(); _update_scene_tabs(); _add_to_recent_scenes(lpath); - if (new_scene->has_meta("__editor_plugin_screen__")) { - - String editor = new_scene->get_meta("__editor_plugin_screen__"); - - for(int i=0;iget_name()==editor) { - _editor_select(i); - break; - } - } - } - prev_scene->set_disabled(previous_scenes.size()==0); opening_prev=false;