Fix local resetting (#2383)

master
Kyler "Félix" Eastridge 2024-08-22 00:42:58 -04:00 committed by GitHub
parent 0c643d9131
commit 9e24b300d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ void LLHUDEffectResetSkeleton::update()
if (mTargetObject->isAvatar())
{
// Only the owner of a avatar can reset their skeleton like this
if (mSourceObject->getID() == mTargetObject->getID())
// Also allow reset if we created the effect (Local resetting)
if (mSourceObject->getID() == mTargetObject->getID() || getOriginatedHere())
{
LLVOAvatar* avatar = mTargetObject->asAvatar();
avatar->resetSkeleton(mResetAnimations);