patch for mac texture loading

This commit is contained in:
granzuglia 2009-05-11 15:25:06 +00:00
parent 08ffe4b7a1
commit bc210a9db7
1 changed files with 6 additions and 1 deletions

View File

@ -554,7 +554,12 @@ class ColladaMesh : public vcg::tri::TriMesh< std::vector<ColladaVertex>, std
QDomNodeList nlst = txlst.at(0).childNodes().at(img).toElement().elementsByTagName("init_from");
if (nlst.size() > 0)
{
texturefile.push_back(nlst.at(0).firstChild().nodeValue());
QString texname = nlst.at(0).firstChild().nodeValue();
if (!texname.isNull() && texname.at(0) != '/')
texname.insert(0,"./");
texturefile.push_back(texname);
}
}
}