Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d32348c

Browse files
committedSep 6, 2023
Reload built-in script after create to allow dropping nodes into it
1 parent f7c48cf commit d32348c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎editor/script_create_dialog.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ void ScriptCreateDialog::_create_new() {
390390

391391
if (is_built_in) {
392392
scr->set_name(internal_name->get_text());
393+
// Make sure the script is compiled to make its type recognizable.
394+
scr->reload();
393395
} else {
394396
String lpath = ProjectSettings::get_singleton()->localize_path(file_path->get_text());
395397
scr->set_path(lpath);

0 commit comments

Comments
 (0)
Please sign in to comment.