More tweak to preview commit - do not 'render' non-used IDs either.

Thanks to Campbell for the headup.
This commit is contained in:
Bastien Montagne 2015-01-07 14:10:14 +01:00
parent 5bbb8a0d9d
commit 14f2597d7e

@ -903,8 +903,9 @@ static void wm_ensure_previews(bContext *C, Main *mainvar)
for (i = 0; lb[i]; i++) {
for (id = lb[i]->first; id; id = id->next) {
/* Only preview non-library datablocks, lib ones do not pertain to this .blend file! */
if (!id->lib) {
/* Only preview non-library datablocks, lib ones do not pertain to this .blend file!
* Same goes for ID with no user. */
if (!id->lib && (id->us != 0)) {
UI_id_icon_render(C, id, false, false);
UI_id_icon_render(C, id, true, false);
}