[Bf-blender-cvs] [6cf734a2e5d] master: UI: Always Create Asset Previews

Harley Acheson noreply at git.blender.org
Fri Sep 17 17:10:04 CEST 2021


Commit: 6cf734a2e5d2496d1b2d33bc7613b56a9f9fc2ec
Author: Harley Acheson
Date:   Fri Sep 17 08:08:56 2021 -0700
Branches: master
https://developer.blender.org/rB6cf734a2e5d2496d1b2d33bc7613b56a9f9fc2ec

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

===================================================================

M	source/blender/blenkernel/intern/icons.cc

===================================================================

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]);



More information about the Bf-blender-cvs mailing list