diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-19 18:08:39 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-19 18:08:39 -0500 |
commit | 029103133ebac7ee13f1af767f41b012d19a84f5 (patch) | |
tree | c531d0662f06b0bd721485cf28e3e40e1b1d0f3e /indra/newview/llvoavatarself.cpp | |
parent | a1d0d67e05c45bdc1a7a8bb0aad79772a2a94f6e (diff) |
MAINT-794 Factor out a lot of CPU overhead around updating objects.
Diffstat (limited to 'indra/newview/llvoavatarself.cpp')
-rw-r--r-- | indra/newview/llvoavatarself.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index c99e94e60c..482d4d19e0 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -631,15 +631,13 @@ BOOL LLVOAvatarSelf::updateCharacter(LLAgent &agent) } // virtual -BOOL LLVOAvatarSelf::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time) +void LLVOAvatarSelf::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time) { - if (!isAgentAvatarValid()) + if (isAgentAvatarValid()) { - return TRUE; + LLVOAvatar::idleUpdate(agent, world, time); + idleUpdateTractorBeam(); } - LLVOAvatar::idleUpdate(agent, world, time); - idleUpdateTractorBeam(); - return TRUE; } // virtual |