getShouldSkipRendering() => !getShouldRender().

This commit is contained in:
Howard Stearns 2015-11-23 10:27:49 -08:00
parent f1e0742aeb
commit 5912808077
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ public:
Q_INVOKABLE glm::vec3 getAngularVelocity() const { return _angularVelocity; }
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
/// \param vector position to be scaled. Will store the result

View file

@ -167,7 +167,7 @@ void AvatarManager::updateOtherAvatars(float deltaTime) {
} else {
avatar->startUpdate();
avatar->simulate(deltaTime);
if (!avatar->getShouldSkipRendering()) {
if (avatar->getShouldRender()) {
renderableCount++;
}
avatar->endUpdate();