added "./" before texture's name for resolve mac's bug
This commit is contained in:
parent
bc210a9db7
commit
3b362fc1e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue