[Bf-blender-cvs] [14f2597] master: More tweak to preview commit - do not 'render' non-used IDs either.
Bastien Montagne
noreply at git.blender.org
Wed Jan 7 14:11:16 CET 2015
Commit: 14f2597d7e518be552020875e52c5d6804b48a1e
Author: Bastien Montagne
Date: Wed Jan 7 14:10:14 2015 +0100
Branches: master
https://developer.blender.org/rB14f2597d7e518be552020875e52c5d6804b48a1e
More tweak to preview commit - do not 'render' non-used IDs either.
Thanks to Campbell for the headup.
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 622e86a..4dfe157 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);
}
More information about the Bf-blender-cvs
mailing list