Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-03-08 18:32:32 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-03-08 19:20:23 +0300
commit6afe2d373a00a49a7a51cafec50d03ada0fe0743 (patch)
tree0009a22d59aecd99e4b5ba8e25430b1a2b9c217b /source/blender/editors/space_file
parenta6a8ca9212108de9a2fad2a67a86d81efdf5ada3 (diff)
Fix ID preview not updating in Asset Browser
Fix ID preview not updating in Asset Browser, by actually sending an explicit `NA_EDITED` along with the `NC_ASSET` notifier.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/space_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 4373bd88473..83bb8abf5d8 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -459,6 +459,7 @@ static void file_listener(const wmSpaceTypeListenerParams *params)
break;
case NA_ADDED:
case NA_REMOVED:
+ case NA_EDITED:
if (sfile->files && filelist_needs_reset_on_main_changes(sfile->files)) {
/* Full refresh of the file list if local asset data was changed. Refreshing this view
* is cheap and users expect this to be updated immediately. */