Stop preview generator before reimporting resources with different type.
This commit is contained in:
parent
5bd3f72878
commit
b0758b2d73
1 changed files with 1 additions and 0 deletions
|
@ -424,6 +424,7 @@ void ImportDock::_reimport_attempt() {
|
||||||
void ImportDock::_reimport_and_restart() {
|
void ImportDock::_reimport_and_restart() {
|
||||||
|
|
||||||
EditorNode::get_singleton()->save_all_scenes();
|
EditorNode::get_singleton()->save_all_scenes();
|
||||||
|
EditorResourcePreview::get_singleton()->stop(); //dont try to re-create previews
|
||||||
_reimport();
|
_reimport();
|
||||||
EditorNode::get_singleton()->restart_editor();
|
EditorNode::get_singleton()->restart_editor();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue