added "./" before texture's name for resolve mac's bug

This commit is contained in:
granzuglia 2009-05-12 09:34:21 +00:00
parent bc210a9db7
commit 3b362fc1e2
1 changed files with 2 additions and 0 deletions

View File

@ -510,6 +510,8 @@ namespace io {
QDomNode imageNode = findNodeBySpecificAttributeValue(libraryImageNodeList.at(0),QString("image"),QString("id"),img_id);
QDomNodeList initfromNode = imageNode.toElement().elementsByTagName("init_from");
textureFileName= initfromNode.at(0).firstChild().nodeValue();
if (!textureFileName.isNull() && textureFileName.at(0) != '/')
textureFileName.insert(0,"./");
qDebug("====== the image '%s' has a %i init_from nodes text '%s'",qPrintable(img_id),initfromNode.size(),qPrintable(textureFileName));
return imageNode;