mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 05:37:43 +02:00
coding standard: brace placement
This commit is contained in:
parent
bd5272d677
commit
5d729b98d6
1 changed files with 9 additions and 3 deletions
|
@ -130,16 +130,22 @@ void setMeshPartDefaults(FBXMeshPart &meshPart, QString materialID) {
|
||||||
bool OBJFace::add(QByteArray vertexIndex, QByteArray textureIndex, QByteArray normalIndex) {
|
bool OBJFace::add(QByteArray vertexIndex, QByteArray textureIndex, QByteArray normalIndex) {
|
||||||
bool ok;
|
bool ok;
|
||||||
int index = vertexIndex.toInt(&ok);
|
int index = vertexIndex.toInt(&ok);
|
||||||
if (!ok) { return false; }
|
if (!ok) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
vertexIndices.append(index - 1);
|
vertexIndices.append(index - 1);
|
||||||
if (textureIndex != nullptr) {
|
if (textureIndex != nullptr) {
|
||||||
index = textureIndex.toInt(&ok);
|
index = textureIndex.toInt(&ok);
|
||||||
if (!ok) { return false; }
|
if (!ok) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
textureUVIndices.append(index - 1);
|
textureUVIndices.append(index - 1);
|
||||||
}
|
}
|
||||||
if (normalIndex != nullptr) {
|
if (normalIndex != nullptr) {
|
||||||
index = normalIndex.toInt(&ok);
|
index = normalIndex.toInt(&ok);
|
||||||
if (!ok) { return false; }
|
if (!ok) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
normalIndices.append(index - 1);
|
normalIndices.append(index - 1);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue