diff options
author | Julian Eisel <julian@blender.org> | 2020-07-08 17:21:27 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-07-08 17:36:00 +0300 |
commit | b836dfd56c8cca605fced4c915508253324c5f58 (patch) | |
tree | e7d6d88ea2933fe560d4c5612f850d24eddea44d /source/blender/blenkernel/intern/icons.c | |
parent | fff746f00ae36fcd67c0d8796bf3ba8a28d4e281 (diff) |
Support preview thumbnails for new asset data-blocks in file browser
Assets have to own a copy of the referenced data-block's preview for this to
work. We *could* do without that, but it complicates partial reading of
data-blocks for the file browser (which may be addressed with further work
though).
Diffstat (limited to 'source/blender/blenkernel/intern/icons.c')
-rw-r--r-- | source/blender/blenkernel/intern/icons.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/icons.c b/source/blender/blenkernel/intern/icons.c index 6da48195aab..2090a41453d 100644 --- a/source/blender/blenkernel/intern/icons.c +++ b/source/blender/blenkernel/intern/icons.c @@ -29,6 +29,7 @@ #include "MEM_guardedalloc.h" +#include "DNA_asset_types.h" #include "DNA_brush_types.h" #include "DNA_collection_types.h" #include "DNA_gpencil_types.h" @@ -339,6 +340,8 @@ PreviewImage **BKE_previewimg_id_get_p(const ID *id) ID_PRV_CASE(ID_GR, Collection); ID_PRV_CASE(ID_SCE, Scene); ID_PRV_CASE(ID_SCR, bScreen); + ID_PRV_CASE(ID_AST, Asset); + #undef ID_PRV_CASE default: break; |