summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-12-16 18:31:43 +0900
committervolzhs <volzhs@gmail.com>2018-12-16 18:31:43 +0900
commitd072d5ed14416af68d0c85b98dd28a638e616596 (patch)
tree034f5f0639fe6e59834070d22c44918c45e0334f
parent814d6cad13270158215d3b5cbe20e96e43b44683 (diff)
Create built-in script properly
-rw-r--r--editor/script_create_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index df704706af..e0c95e3bbc 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -308,8 +308,10 @@ void ScriptCreateDialog::_built_in_pressed() {
if (internal->is_pressed()) {
is_built_in = true;
+ is_new_script_created = true;
} else {
is_built_in = false;
+ _path_changed(file_path->get_text());
}
_update_dialog();
}