diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-10-10 15:59:22 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-10-10 15:59:22 +0100 |
| commit | 9ad912b601425bef843bfc45e9d8075623c37584 (patch) | |
| tree | 99ce79c0ebfd42366df4936bde2cceff9d5ba4dc /indra/newview/llcontrolavatar.cpp | |
| parent | ae041779ccc83b1acc8a01528918d52aab9f565f (diff) | |
SL-9849 - animated object attachments get isImpostor() state from av they're attached to
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
| -rw-r--r-- | indra/newview/llcontrolavatar.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index 4b70d625d4..15ed2073b4 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -590,3 +590,18 @@ bool LLControlAvatar::shouldRenderRigged() const } return true; } + +// virtual +BOOL LLControlAvatar::isImpostor() +{ + if (mRootVolp && mRootVolp->isAttachment()) + { + // Attached animated objects should match state of their attached av. + LLVOAvatar *attached_av = mRootVolp->getAvatarAncestor(); + if (attached_av) + { + return attached_av->isImpostor(); + } + } + return LLVOAvatar::isImpostor(); +} |
