mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
fix relative paths
This commit is contained in:
parent
dee06e72f6
commit
a855916eb8
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ void OBJReader::parseMaterialLibrary(QIODevice* device) {
|
|||
} else if (token == "Ks") {
|
||||
currentMaterial.specularColor = tokenizer.getVec3();
|
||||
} else if ((token == "map_Kd") || (token == "map_Ke") || (token == "map_Ks")) {
|
||||
QByteArray filename = QUrl(tokenizer.getLineAsDatum()).fileName().toUtf8();
|
||||
QByteArray filename = QString(tokenizer.getLineAsDatum()).toUtf8();
|
||||
if (filename.endsWith(".tga")) {
|
||||
#ifdef WANT_DEBUG
|
||||
qCDebug(modelformat) << "OBJ Reader WARNING: currently ignoring tga texture " << filename << " in " << _url;
|
||||
|
|
Loading…
Reference in a new issue