Browse Source

Merge pull request #75798 from KoBeWi/let's_fix_this_hack_with_yet_another_hack

Make sure script cache is created after reimport
Rémi Verschelde 2 years ago
parent
commit
9be0aab790
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_file_system.cpp

+ 1 - 0
editor/editor_file_system.cpp

@@ -2330,6 +2330,7 @@ void EditorFileSystem::reimport_files(const Vector<String> &p_files) {
 	ResourceUID::get_singleton()->update_cache(); // After reimporting, update the cache.
 
 	_save_filesystem_cache();
+	_update_pending_script_classes();
 	importing = false;
 	if (!is_scanning()) {
 		emit_signal(SNAME("filesystem_changed"));