dont give an error on when texface conversion fails on load. give a warning instead.

this is needed because python converts report errors to exceptions (as if the file load operator couldn't complete), but infact it does load the file so rather then stopping the script, just report this as a warning.
This commit is contained in:
2011-09-28 16:25:50 +00:00
parent a403268331
commit bee8e456f6

View File

@@ -7058,7 +7058,7 @@ void convert_tface_mt(FileData *fd, Main *main)
G.main = main;
if(!(do_version_tface(main, 1))) {
BKE_report(fd->reports, RPT_ERROR, "Texface conversion problem. Error in console");
BKE_report(fd->reports, RPT_WARNING, "Texface conversion problem. Error in console");
}
//XXX hack, material.c uses G.main allover the place, instead of main