diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-07 16:10:14 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-07 16:10:14 +0300 |
commit | 14f2597d7e518be552020875e52c5d6804b48a1e (patch) | |
tree | 3515964d2db2419ceda8a3add4233cee1a0a11bb /source/blender/windowmanager/intern/wm_files.c | |
parent | 5bbb8a0d9d261ec5af992525d22242fc5ae82e55 (diff) |
More tweak to preview commit - do not 'render' non-used IDs either.
Thanks to Campbell for the headup.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 622e86a8e02..4dfe157416b 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -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); } |