mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +02:00
Format if..else statements
This commit is contained in:
parent
0b40608650
commit
b7d5804edb
2 changed files with 2 additions and 4 deletions
|
@ -879,8 +879,7 @@ struct AllContactsCallback : public btCollisionWorld::ContactResultCallback {
|
||||||
otherBody = colObj1->m_collisionObject;
|
otherBody = colObj1->m_collisionObject;
|
||||||
penetrationPoint = getWorldPoint(cp.m_localPointB, colObj1->getWorldTransform());
|
penetrationPoint = getWorldPoint(cp.m_localPointB, colObj1->getWorldTransform());
|
||||||
otherPenetrationPoint = getWorldPoint(cp.m_localPointA, colObj0->getWorldTransform());
|
otherPenetrationPoint = getWorldPoint(cp.m_localPointA, colObj0->getWorldTransform());
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
otherBody = colObj0->m_collisionObject;
|
otherBody = colObj0->m_collisionObject;
|
||||||
penetrationPoint = getWorldPoint(cp.m_localPointA, colObj0->getWorldTransform());
|
penetrationPoint = getWorldPoint(cp.m_localPointA, colObj0->getWorldTransform());
|
||||||
otherPenetrationPoint = getWorldPoint(cp.m_localPointB, colObj1->getWorldTransform());
|
otherPenetrationPoint = getWorldPoint(cp.m_localPointB, colObj1->getWorldTransform());
|
||||||
|
|
|
@ -235,8 +235,7 @@ public:
|
||||||
if (shapeType >= SHAPE_TYPE_COMPOUND && shapeType <= SHAPE_TYPE_STATIC_MESH && shape["modelURL"].isValid()) {
|
if (shapeType >= SHAPE_TYPE_COMPOUND && shapeType <= SHAPE_TYPE_STATIC_MESH && shape["modelURL"].isValid()) {
|
||||||
QString newURL = shape["modelURL"].toString();
|
QString newURL = shape["modelURL"].toString();
|
||||||
modelURL.setUrl(newURL);
|
modelURL.setUrl(newURL);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
modelURL.setUrl("");
|
modelURL.setUrl("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue