summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-06-16 23:10:59 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-06-17 02:03:38 +0300
commit02c7ee34d4640bef3204ccd4207cfae1fd2a9e27 (patch)
tree6c86d1b896c6c94e5195bad9517a9f91c422cd3c
parentad4a54db2d3e6be6e595d2c89899848679b8f748 (diff)
#5579 Ensure own avatar's complexity is up to date
-rw-r--r--indra/newview/llvoavatar.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 2f39a76156..460570d0e5 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -8575,6 +8575,10 @@ bool LLVOAvatar::processFullyLoadedChange(bool loading)
if (changed && isSelf())
{
+ // Agent's own avatar doesn't track bakes the same way as other avatars.
+ // So just update here, on cloud removal.
+ markBodyPartsComplexityDirty();
+
// to know about outfit switching
LLAvatarRenderNotifier::getInstance()->updateNotificationState();
}
@@ -10170,6 +10174,10 @@ void LLVOAvatar::onInitialBakedTextureLoaded( bool success, LLViewerFetchedTextu
}
if (final || !success )
{
+ if (selfp)
+ {
+ selfp->markBodyPartsComplexityDirty();
+ }
delete avatar_idp;
}
}
@@ -11458,7 +11466,7 @@ void LLVOAvatar::calculateUpdateRenderComplexity()
// Store results
mVisualComplexity = total_cost;
- // Call the existing reporting function with the aggregated lists
+ // Call the reporting function with the aggregated lists
processComplexityCostChange(hud_complexity_list, object_complexity_list);
// Stop processing until something changes