diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-06 11:08:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 11:08:01 +0200 |
commit | 0f8356d43994e3b7f054ac223a6681773aeb9330 (patch) | |
tree | d2d72ca554729d5df1af51c801baa816ae4d4c51 /editor/editor_node.h | |
parent | 7b7a664a974e86acb6d55e31609d33cf84311b8f (diff) | |
parent | 648cc7c0f54ac8b81e4409e7405fa5cd8bf7834e (diff) |
Merge pull request #28715 from YeldhamDev/inherent_scene_close_empty
Make editor close empty scene when creating an inherited one
Diffstat (limited to 'editor/editor_node.h')
-rw-r--r-- | editor/editor_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |