From Fabio Mierlo, "n the lines 428 and 430 of obj.cpp file from release 2.6.0, the parser

use only the first 7 characters to compare the string "map_opacity "
and to copy the followed parameter, but the string have 12 characters."
This commit is contained in:
Robert Osfield 2008-09-26 10:43:18 +00:00
parent 794a3ff257
commit bce664dcab

View File

@ -425,9 +425,9 @@ bool Model::readMTL(std::istream& fin)
{
material->map_Ks = parseTexture(strip(line+7), *material);
}
else if (strncmp(line,"map_opacity ",7)==0)
else if (strncmp(line,"map_opacity ",12)==0)
{
material->map_opacity = parseTexture(strip(line+7), *material);
material->map_opacity = parseTexture(strip(line+12), *material);
}
else if (strcmp(line,"refl")==0 || strncmp(line,"refl ",5)==0)
{