Merge pull request #109735 from mihe/infinite-doc-regen

Fix/remove error about "Can't update documentation" when saving script
This commit is contained in:
Thaddeus Crews 2025-08-19 10:29:41 -05:00
commit c263b209ec
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 2 additions and 4 deletions

View file

@ -1768,13 +1768,13 @@ void EditorFileSystem::_notification(int p_what) {
// Set first_scan to false before the signals so the function doing_first_scan can return false
// in editor_node to start the export if needed.
first_scan = false;
scanning_changes = false;
done_importing = true;
ResourceImporter::load_on_startup = nullptr;
if (changed) {
emit_signal(SNAME("filesystem_changed"));
}
emit_signal(SNAME("sources_changed"), sources_changed.size() > 0);
scanning_changes = false; // Changed to false here to prevent recursive triggering of scan thread.
done_importing = true;
}
} else if (!scanning && thread.is_started()) {
set_process(false);