Stop preview generator before reimporting resources with different type.

This commit is contained in:
Juan Linietsky 2019-01-25 17:27:50 -03:00
parent 5bd3f72878
commit b0758b2d73

View file

@ -424,6 +424,7 @@ void ImportDock::_reimport_attempt() {
void ImportDock::_reimport_and_restart() {
EditorNode::get_singleton()->save_all_scenes();
EditorResourcePreview::get_singleton()->stop(); //dont try to re-create previews
_reimport();
EditorNode::get_singleton()->restart_editor();
}