Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-08-12 04:09:57 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-08-12 04:09:57 +0400
commit44e4c5f8316b34835c7900dc649bf8a1570afc0a (patch)
tree99027196ffd166c78c336126d36c36bbc1621a29 /source/blender/editors/space_file/filelist.c
parent8a340981be174cae842d339f0458ba6b558330c3 (diff)
parent0682c3f1aefe315df5fe64ba8c814adacbd739e5 (diff)
Merged changes in the trunk up to revision 49797.
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index ec16fa539e9..e550c83a2ec 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -383,6 +383,9 @@ void filelist_init_icons(void)
short x, y, k;
ImBuf *bbuf;
ImBuf *ibuf;
+
+ BLI_assert(G.background == FALSE);
+
#ifdef WITH_HEADLESS
bbuf = NULL;
#else
@@ -408,6 +411,9 @@ void filelist_init_icons(void)
void filelist_free_icons(void)
{
int i;
+
+ BLI_assert(G.background == FALSE);
+
for (i = 0; i < SPECIAL_IMG_MAX; ++i) {
IMB_freeImBuf(gSpecialFileImages[i]);
gSpecialFileImages[i] = NULL;
@@ -615,7 +621,10 @@ short filelist_changed(struct FileList *filelist)
ImBuf *filelist_getimage(struct FileList *filelist, int index)
{
ImBuf *ibuf = NULL;
- int fidx = 0;
+ int fidx = 0;
+
+ BLI_assert(G.background == FALSE);
+
if ( (index < 0) || (index >= filelist->numfiltered) ) {
return NULL;
}
@@ -629,7 +638,10 @@ ImBuf *filelist_geticon(struct FileList *filelist, int index)
{
ImBuf *ibuf = NULL;
struct direntry *file = NULL;
- int fidx = 0;
+ int fidx = 0;
+
+ BLI_assert(G.background == FALSE);
+
if ( (index < 0) || (index >= filelist->numfiltered) ) {
return NULL;
}