You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Update preview on filesystem change
Check and recreate a file's preview, if it has changes to it in the filesystem.
(cherry picked from commit 188ccf190b)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
4ce6a8f5f9
commit
41f360f9c2
@@ -1355,6 +1355,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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user