diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-03-13 11:27:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 11:27:43 +0100 |
commit | 40aa97d2c89f7bc4d19e5754c947af11ff3435d9 (patch) | |
tree | 709dfdf3daa012004bccefe5d6e555d238d695b6 /editor | |
parent | ada1357dfd5d2d3a1955531c3d16de4255e1b3dc (diff) | |
parent | 188ccf190ba398ef9d3f661016f15cc005505c26 (diff) |
Merge pull request #17413 from ShyRed/previewfix
Update preview on filesystem change
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_file_system.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index dca32d7492..15aa2c3a0e 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -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 } |