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() { 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();
} }