Skip to content

Fix: send updated appearance back to self after outfit change#174

Open
KanikaBreed wants to merge 1 commit into
OpenSim-NGC:masterfrom
KanikaBreed:fix/reset-skeleton-stale-appearance
Open

Fix: send updated appearance back to self after outfit change#174
KanikaBreed wants to merge 1 commit into
OpenSim-NGC:masterfrom
KanikaBreed:fix/reset-skeleton-stale-appearance

Conversation

@KanikaBreed
Copy link
Copy Markdown

This addresses the issue with Firestorm "Reset Skeleton"

When a user changes outfit, the server was broadcasting the new AvatarAppearance to all other nearby clients but not back to the avatar themselves. The viewer keeps a cached copy (mLastProcessedAppearance) of the last AvatarAppearance it received from the server, which was only set at region entry and never updated on subsequent outfit changes.

Firestorm resetSkeleton() replays mLastProcessedAppearance to rebuild the avatar, so it was reverting textures to whatever outfit was worn at region entry.

Fix: call SendAppearanceToAgentNF(sp) on self inside SendAppearance() so that mLastProcessedAppearance stays current after every outfit change, matching the existing behaviour already present at region entry.

When a user changes outfit, the server was broadcasting the new
AvatarAppearance to all other nearby clients but not back to the
avatar themselves. The viewer keeps a cached copy (mLastProcessedAppearance)
of the last AvatarAppearance it received from the server, which was
only set at region entry and never updated on subsequent outfit changes.

resetSkeleton() replays mLastProcessedAppearance to rebuild the avatar,
so it was reverting textures to whatever outfit was worn at region entry.

Fix: call SendAppearanceToAgentNF(sp) on self inside SendAppearance()
so that mLastProcessedAppearance stays current after every outfit change,
matching the existing behaviour already present at region entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant