Skip to content

Commit a299004

Browse files
committed
Enable script templates by default
1 parent 9a5d6d1 commit a299004

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/script/script_create_dialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void ScriptCreateDialog::_notification(int p_what) {
124124
} else {
125125
language_menu->select(default_language);
126126
}
127-
is_using_templates = EDITOR_DEF("_script_setup_use_script_templates", false);
127+
is_using_templates = EDITOR_GET("_script_setup_use_script_templates");
128128
use_templates->set_pressed(is_using_templates);
129129
} break;
130130

@@ -849,6 +849,7 @@ void ScriptCreateDialog::_bind_methods() {
849849
ScriptCreateDialog::ScriptCreateDialog() {
850850
if (EditorSettings::get_singleton()) {
851851
EDITOR_DEF("_script_setup_templates_dictionary", Dictionary());
852+
EDITOR_DEF("_script_setup_use_script_templates", true);
852853
}
853854

854855
/* Main Controls */

0 commit comments

Comments
 (0)