Merge pull request #17413 from ShyRed/previewfix

Update preview on filesystem change
This commit is contained in:
Rémi Verschelde 2018-03-13 11:27:43 +01:00 committed by GitHub
commit 40aa97d2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1316,6 +1316,9 @@ void EditorFileSystem::update_file(const String &p_file) {
fs->files[cpos]->deps = _get_dependencies(p_file);
fs->files[cpos]->import_valid = ResourceLoader::is_import_valid(p_file);
// Update preview
EditorResourcePreview::get_singleton()->check_for_invalidation(p_file);
call_deferred("emit_signal", "filesystem_changed"); //update later
}