When Blender tries to open a non-existing file,  two error popups were
called. Very annoying.

Was simple one-liner fix; the 'read exotic' function should return a -1
when file doesn't exist. :)
This commit is contained in:
Ton Roosendaal
2006-06-21 10:46:38 +00:00
parent 985db6c4ef
commit d62a5e04e0

View File

@@ -2362,6 +2362,7 @@ int BKE_read_exotic(char *name)
if (NULL == gzfile ) {
error("Can't open file: %s", name);
retval= -1;
} else {
gzread(gzfile, str, 31);
gzclose(gzfile);