mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 13:33:27 +02:00
getShouldSkipRendering() => !getShouldRender().
This commit is contained in:
parent
f1e0742aeb
commit
5912808077
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ public:
|
||||||
Q_INVOKABLE glm::vec3 getAngularVelocity() const { return _angularVelocity; }
|
Q_INVOKABLE glm::vec3 getAngularVelocity() const { return _angularVelocity; }
|
||||||
Q_INVOKABLE glm::vec3 getAngularAcceleration() const { return _angularAcceleration; }
|
Q_INVOKABLE glm::vec3 getAngularAcceleration() const { return _angularAcceleration; }
|
||||||
|
|
||||||
Q_INVOKABLE bool getShouldSkipRendering() const { return _shouldSkipRender; }
|
Q_INVOKABLE bool getShouldRender() const { return !_shouldSkipRender; }
|
||||||
|
|
||||||
/// Scales a world space position vector relative to the avatar position and scale
|
/// Scales a world space position vector relative to the avatar position and scale
|
||||||
/// \param vector position to be scaled. Will store the result
|
/// \param vector position to be scaled. Will store the result
|
||||||
|
|
|
@ -167,7 +167,7 @@ void AvatarManager::updateOtherAvatars(float deltaTime) {
|
||||||
} else {
|
} else {
|
||||||
avatar->startUpdate();
|
avatar->startUpdate();
|
||||||
avatar->simulate(deltaTime);
|
avatar->simulate(deltaTime);
|
||||||
if (!avatar->getShouldSkipRendering()) {
|
if (avatar->getShouldRender()) {
|
||||||
renderableCount++;
|
renderableCount++;
|
||||||
}
|
}
|
||||||
avatar->endUpdate();
|
avatar->endUpdate();
|
||||||
|
|
Loading…
Reference in a new issue