mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 23:54:04 +02:00
minor cleanup
This commit is contained in:
parent
2cee5992a0
commit
c0e02107c5
1 changed files with 1 additions and 5 deletions
|
@ -28,11 +28,7 @@ public:
|
|||
void applyAccumulatedDelta();
|
||||
|
||||
glm::vec3 getAccumulatedDelta() const {
|
||||
glm::vec3 foo(0.0f);
|
||||
if (_numDeltas > 0) {
|
||||
foo = _accumulatedDelta / (float)_numDeltas;
|
||||
}
|
||||
return foo;
|
||||
return (_numDeltas > 0) ? _accumulatedDelta / (float)_numDeltas : glm::vec3(0.0f);
|
||||
}
|
||||
|
||||
glm::vec3 _position;
|
||||
|
|
Loading…
Reference in a new issue