mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 23:17:10 +02:00
treat a "g" in an obj file the same as a "o"
This commit is contained in:
parent
4ebc75da1f
commit
b7ecffa0be
1 changed files with 2 additions and 1 deletions
|
@ -306,7 +306,8 @@ bool OBJReader::parseOBJGroup(OBJTokenizer& tokenizer, const QVariantHash& mappi
|
|||
}
|
||||
QByteArray token = tokenizer.getDatum();
|
||||
//qCDebug(modelformat) << token;
|
||||
if (token == "g") {
|
||||
// we don't support separate objects in the same file, so treat "o" the same as "g".
|
||||
if (token == "g" || token == "o") {
|
||||
if (sawG) {
|
||||
// we've encountered the beginning of the next group.
|
||||
tokenizer.pushBackToken(OBJTokenizer::DATUM_TOKEN);
|
||||
|
|
Loading…
Reference in a new issue