Fix error emitting when called new shader dialog from resource dialog
This commit is contained in:
parent
3ed2bd13ad
commit
c34e806426
1 changed files with 3 additions and 1 deletions
|
@ -339,8 +339,10 @@ void CreateDialog::_confirmed() {
|
||||||
memdelete(f);
|
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();
|
hide();
|
||||||
|
|
||||||
|
emit_signal(SNAME("create"));
|
||||||
_cleanup();
|
_cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue