Merge pull request #55689 from Chaosus/fix_shader_window_bug

This commit is contained in:
Rémi Verschelde 2021-12-07 13:18:47 +01:00 committed by GitHub
commit a33b85c122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -339,8 +339,10 @@ void CreateDialog::_confirmed() {
memdelete(f);
}
emit_signal(SNAME("create"));
// To prevent, emitting an error from the transient window (shader dialog for example) hide this dialog before emitting the "create" signal.
hide();
emit_signal(SNAME("create"));
_cleanup();
}