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:
authorHarley Acheson <harley.acheson@gmail.com>2021-09-17 18:08:56 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-09-17 18:08:56 +0300
commit6cf734a2e5d2496d1b2d33bc7613b56a9f9fc2ec (patch)
treefcb4be0a1442356c565cc25cc75f39199fcfd3bd
parent6b0aa7ae156461310bfff7d19d8754b4b55409f0 (diff)
UI: Always Create Asset Previews
This patch allows Asset Browser previews to be made regardless of the setting of the (unrelated) "File Preview Type" Preference. See D12484 for more details. Differential Revision: https://developer.blender.org/D12484 Reviewed by Julian Eisel
-rw-r--r--source/blender/blenkernel/intern/icons.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/icons.cc b/source/blender/blenkernel/intern/icons.cc
index ac45e57f413..97c742b1ec1 100644
--- a/source/blender/blenkernel/intern/icons.cc
+++ b/source/blender/blenkernel/intern/icons.cc
@@ -633,12 +633,6 @@ void BKE_previewimg_blend_write(BlendWriter *writer, const PreviewImage *prv)
}
PreviewImage prv_copy = *prv;
- /* don't write out large previews if not requested */
- if (U.file_preview_type == USER_FILE_PREVIEW_NONE) {
- prv_copy.w[1] = 0;
- prv_copy.h[1] = 0;
- prv_copy.rect[1] = nullptr;
- }
BLO_write_struct_at_address(writer, PreviewImage, prv, &prv_copy);
if (prv_copy.rect[0]) {
BLO_write_uint32_array(writer, prv_copy.w[0] * prv_copy.h[0], prv_copy.rect[0]);