Revert "Merge pull request #28715 from YeldhamDev/inherent_scene_close_empty"

This reverts commit 0f8356d439, reversing
changes made to 7b7a664a97.
This commit is contained in:
Michael Alexsander Silva Dias 2019-05-08 00:46:40 -03:00
parent 0239d8bd9f
commit 699140000c
2 changed files with 0 additions and 2 deletions

View file

@ -671,7 +671,6 @@ public:
static void remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed = false);
void new_inherited_scene() { _menu_option_confirm(FILE_NEW_INHERITED_SCENE, false); }
void close_current_scene() { _menu_option_confirm(FILE_CLOSE, false); }
void set_docks_visible(bool p_show);
bool get_docks_visible() const;

View file

@ -334,7 +334,6 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
Node *scene = edited_scene;
if (!scene) {
EditorNode::get_singleton()->close_current_scene();
EditorNode::get_singleton()->new_inherited_scene();
break;
}