From 648cc7c0f54ac8b81e4409e7405fa5cd8bf7834e Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Sun, 5 May 2019 23:53:05 -0300 Subject: Make editor close empty scene when creating an inherited one Fixes #28654. --- editor/editor_node.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/editor_node.h') diff --git a/editor/editor_node.h b/editor/editor_node.h index 0084d421f9..c054dd7103 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -671,6 +671,7 @@ 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; -- cgit v1.2.3