mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:24:51 +02:00
remove fall-through in switch/case logic
This commit is contained in:
parent
f41fb30ace
commit
2f6e5ab2ee
1 changed files with 2 additions and 3 deletions
|
@ -27,12 +27,12 @@ void ShapeInfo::clear() {
|
|||
|
||||
void ShapeInfo::setParams(ShapeType type, const glm::vec3& halfExtents, QString url) {
|
||||
_type = type;
|
||||
_halfExtents = halfExtents;
|
||||
switch(type) {
|
||||
case SHAPE_TYPE_NONE:
|
||||
_halfExtents = glm::vec3(0.0f);
|
||||
break;
|
||||
case SHAPE_TYPE_BOX:
|
||||
_halfExtents = halfExtents;
|
||||
break;
|
||||
case SHAPE_TYPE_SPHERE: {
|
||||
// sphere radius is max of halfExtents
|
||||
|
@ -43,9 +43,8 @@ void ShapeInfo::setParams(ShapeType type, const glm::vec3& halfExtents, QString
|
|||
case SHAPE_TYPE_COMPOUND:
|
||||
case SHAPE_TYPE_MESH:
|
||||
_url = QUrl(url);
|
||||
// yes, fall through
|
||||
break;
|
||||
default:
|
||||
_halfExtents = halfExtents;
|
||||
break;
|
||||
}
|
||||
_doubleHashKey.clear();
|
||||
|
|
Loading…
Reference in a new issue