diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-01-12 12:22:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-01-12 12:22:02 +0300 |
commit | 60722bfb1d1a1dc1d76fa602f95892756ab65680 (patch) | |
tree | 5f1aa86f3aa0ea242970866bd6951f0efa942f9a /source/blender/src/header_imasel.c | |
parent | 1610b55f7ef3c0ffa74e088f5321afd8ed2da6fa (diff) |
fix for [#8019] Switching to Image Browser window crashes Blender
http://projects.blender.org/tracker/index.php?func=detail&aid=8019&group_id=9&atid=125
Diffstat (limited to 'source/blender/src/header_imasel.c')
-rw-r--r-- | source/blender/src/header_imasel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/header_imasel.c b/source/blender/src/header_imasel.c index 1402e8c244e..3968cff4757 100644 --- a/source/blender/src/header_imasel.c +++ b/source/blender/src/header_imasel.c @@ -155,6 +155,11 @@ void imasel_buttons(void) xco+=20; type = simasel->type; + + if(!simasel->files) { + simasel->files = BIF_filelist_new(); + } + if (type == FILE_LOADLIB) { do_filter = !BIF_filelist_islibrary(simasel->files, dir, group); } else { |