diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-01 21:13:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 21:13:46 +0200 |
commit | 0268a4869ded42079d3f4c255406711c726e3df4 (patch) | |
tree | a81b2819f82a9e5b9625dca40216f73fa95a9204 /editor/script_create_dialog.cpp | |
parent | d40dbd6d1119a6e9f04431105f44185d9103b4e0 (diff) | |
parent | 410054db381dc1eacf944f4c52ca8c7c9ec6e65a (diff) |
Merge pull request #30196 from LikeLakers2/scenetreedock-script-creation-bugfix
SceneTreeDock will now only attach scripts to the selected node if the ScriptCreateDialog was opened from the SceneTreeDock
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r-- | editor/script_create_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index ffa221edaf..8916f4d8c4 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -286,8 +286,8 @@ void ScriptCreateDialog::_create_new() { } } - hide(); emit_signal("script_created", scr); + hide(); } void ScriptCreateDialog::_load_exist() { @@ -300,8 +300,8 @@ void ScriptCreateDialog::_load_exist() { return; } - hide(); emit_signal("script_created", p_script.get_ref_ptr()); + hide(); } void ScriptCreateDialog::_lang_changed(int l) { |