Browse Source

Stop preview generator before reimporting resources with different type.

Juan Linietsky 6 years ago
parent
commit
b0758b2d73
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/import_dock.cpp

+ 1 - 0
editor/import_dock.cpp

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