mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:10:37 +02:00
filename space fix
This commit is contained in:
parent
6a23eea6ee
commit
f929fa3bcb
1 changed files with 7 additions and 3 deletions
|
@ -355,7 +355,7 @@ void OBJReader::parseTextureLine(const QByteArray& textureLine, QByteArray& file
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < parser.size()) {
|
while (i < parser.size()) {
|
||||||
if (i + 1 < parser.size()) {
|
if (i + 1 < parser.size() && parser[i][0] == '-') {
|
||||||
const std::string& option = parser[i++];
|
const std::string& option = parser[i++];
|
||||||
if (option == "-blendu" || option == "-blendv") {
|
if (option == "-blendu" || option == "-blendv") {
|
||||||
#ifdef WANT_DEBUG
|
#ifdef WANT_DEBUG
|
||||||
|
@ -424,8 +424,12 @@ void OBJReader::parseTextureLine(const QByteArray& textureLine, QByteArray& file
|
||||||
qCDebug(modelformat) << "OBJ Reader WARNING: Ignoring unsupported texture option" << option.c_str();
|
qCDebug(modelformat) << "OBJ Reader WARNING: Ignoring unsupported texture option" << option.c_str();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else { // assume filename at end
|
} else { // assume filename at end when no more options
|
||||||
filename = parser[i++].c_str();
|
std::string filenameString = parser[i++];
|
||||||
|
while (i < parser.size()) { // filename has space in it
|
||||||
|
filenameString += " " + parser[i++];
|
||||||
|
}
|
||||||
|
filename = filenameString.c_str();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue