[Bf-blender-cvs] [0956cd39133] asset-browser: Fix assert failure when regenerating preview icons

Julian Eisel noreply at git.blender.org
Sun Nov 15 14:55:55 CET 2020


Commit: 0956cd391339f78ce334048d020c7b53823d6679
Author: Julian Eisel
Date:   Sun Nov 15 14:54:43 2020 +0100
Branches: asset-browser
https://developer.blender.org/rB0956cd391339f78ce334048d020c7b53823d6679

Fix assert failure when regenerating preview icons

Would happen when changing material settings multiple times while the
material-slot list was visible with the material icon previews.

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

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

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

diff --git a/source/blender/blenkernel/intern/icons.c b/source/blender/blenkernel/intern/icons.c
index 57d7bfbe8a3..58f4786af57 100644
--- a/source/blender/blenkernel/intern/icons.c
+++ b/source/blender/blenkernel/intern/icons.c
@@ -630,7 +630,7 @@ void BKE_icon_changed(const int icon_id)
     /* If we have previews, they all are now invalid changed. */
     if (p_prv && *p_prv) {
       for (int i = 0; i < NUM_ICON_SIZES; i++) {
-        (*p_prv)->flag[i] |= PRV_CHANGED;
+        (*p_prv)->flag[i] |= (PRV_CHANGED | PRV_UNFINISHED);
         (*p_prv)->changed_timestamp[i]++;
       }
     }



More information about the Bf-blender-cvs mailing list