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
This commit is contained in:
Campbell Barton
2008-01-12 09:22:02 +00:00
parent 1610b55f7e
commit 60722bfb1d

View File

@@ -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 {