diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-20 02:16:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-20 02:31:30 +0300 |
commit | ef9269bd62f31e39d39cc59cd34354b53eae6661 (patch) | |
tree | 5ff2fb2f3b03678b7e58a23397d4d53bb83f35f8 /source/blender/modifiers/intern/MOD_mask.cc | |
parent | bca2701236ab60dce5e32a8731f3bba43783b5b2 (diff) |
Thumbnails: refactor extraction to use one code-path for all platforms
Thumbnail extraction now shares code between Linux/Windows,
allowing thumbnails from Zstd compressed blend files to be extracted.
The main logic is placed in blendthumb_extract.cc and is built as static
library. For windows there is DLL which is registered during blender
install and which then reads and generates thumbnails.
For other platforms there is blender-thumbnailer executable file which
takes blend file as an input and generates PNG file. As a result
Python script blender-thumbnailer.py is no longer needed.
The thumbnail extractor shares the same code-path as Blenders file
reading, so there is no need to duplicate any file reading logic.
This means reading compressed blend files is supported (broken since
the recent move Zstd compression - D5799).
This resolves T63736.
Contributors:
- @alausic original patch.
- @LazyDodo windows fixes/support.
- @campbellbarton general fixes/update.
- @lukasstockner97 Zstd support.
Reviewed By: sybren, mont29, LazyDodo, campbellbarton
Ref D6408
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mask.cc')
0 files changed, 0 insertions, 0 deletions