Merge pull request #34478 from volzhs/error-script-create

Fix error when closing Attach Node Script window
This commit is contained in:
Rémi Verschelde 2020-01-02 13:47:52 +01:00 committed by GitHub
commit dbf907e094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1739,7 +1739,6 @@ void SceneTreeDock::_script_created(Ref<Script> p_script) {
void SceneTreeDock::_script_creation_closed() {
script_create_dialog->disconnect("script_created", this, "_script_created");
script_create_dialog->disconnect("popup_hide", this, "_script_creation_closed");
}
void SceneTreeDock::_toggle_editable_children_from_selection() {
@ -2618,7 +2617,7 @@ void SceneTreeDock::attach_script_to_selected(bool p_extend) {
}
script_create_dialog->connect("script_created", this, "_script_created");
script_create_dialog->connect("popup_hide", this, "_script_creation_closed");
script_create_dialog->connect("popup_hide", this, "_script_creation_closed", varray(), CONNECT_ONESHOT);
script_create_dialog->set_inheritance_base_type("Node");
script_create_dialog->config(inherits, path);
script_create_dialog->popup_centered();