mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-07 21:20:17 +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 ok;
|
||||
int index = vertexIndex.toInt(&ok);
|
||||
if (!ok) { return false; }
|
||||
if (!ok) {
|
||||
return false;
|
||||
}
|
||||
vertexIndices.append(index - 1);
|
||||
if (textureIndex != nullptr) {
|
||||
index = textureIndex.toInt(&ok);
|
||||
if (!ok) { return false; }
|
||||
if (!ok) {
|
||||
return false;
|
||||
}
|
||||
textureUVIndices.append(index - 1);
|
||||
}
|
||||
if (normalIndex != nullptr) {
|
||||
index = normalIndex.toInt(&ok);
|
||||
if (!ok) { return false; }
|
||||
if (!ok) {
|
||||
return false;
|
||||
}
|
||||
normalIndices.append(index - 1);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue