From a84a46176729ffab82703bdff62fcde73dd6477d Mon Sep 17 00:00:00 2001 From: Adham Zahran Date: Wed, 12 Oct 2016 22:23:48 +0200 Subject: fix #6031 when creating a script the language will be what you selected last time --- tools/editor/script_create_dialog.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/editor/script_create_dialog.h') diff --git a/tools/editor/script_create_dialog.h b/tools/editor/script_create_dialog.h index 181989402e..c71ea16d39 100644 --- a/tools/editor/script_create_dialog.h +++ b/tools/editor/script_create_dialog.h @@ -33,6 +33,7 @@ #include "scene/gui/line_edit.h" #include "scene/gui/option_button.h" #include "tools/editor/editor_file_dialog.h" +#include "tools/editor/editor_settings.h" #include "scene/gui/check_button.h" class ScriptCreateDialog : public ConfirmationDialog { @@ -50,6 +51,7 @@ class ScriptCreateDialog : public ConfirmationDialog { AcceptDialog *alert; bool path_valid; String initial_bp; + EditorSettings *editor_settings; void _path_changed(const String& p_path=String()); -- cgit v1.2.3