diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-05-18 17:56:54 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-05-18 17:56:54 -0500 |
| commit | bf183ecff76809674f4fb0fa302138d554bc3628 (patch) | |
| tree | f73d035f64a1c42f3678127674c3e088c50a6eee /indra/newview/llspatialpartition.h | |
| parent | c1deab5ba7595f5094313bb9002411c11bb00745 (diff) | |
SL-17449 Fix for Alexa's hair
Diffstat (limited to 'indra/newview/llspatialpartition.h')
| -rw-r--r-- | indra/newview/llspatialpartition.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.h b/indra/newview/llspatialpartition.h index acfcd63686..6d3ef33801 100644 --- a/indra/newview/llspatialpartition.h +++ b/indra/newview/llspatialpartition.h @@ -255,6 +255,19 @@ public: } }; + struct CompareRenderOrder + { + bool operator()(const LLSpatialGroup* const& lhs, const LLSpatialGroup* const& rhs) + { + if (lhs->mAvatarp != rhs->mAvatarp) + { + return lhs->mAvatarp < rhs->mAvatarp; + } + + return lhs->mRenderOrder > rhs->mRenderOrder; + } + }; + typedef enum { GEOM_DIRTY = LLViewerOctreeGroup::INVALID_STATE, @@ -338,6 +351,10 @@ public: F32 mPixelArea; F32 mRadius; + + //used by LLVOAVatar to set render order in alpha draw pool to preserve legacy render order behavior + LLVOAvatar* mAvatarp = nullptr; + U32 mRenderOrder = 0; } LL_ALIGN_POSTFIX(64); class LLGeometryManager |
