Feature Request: Option to render only self: AlwaysRenderFriends set to 3
This commit is contained in:
@@ -12685,7 +12685,10 @@ This should be as low as possible, but too low may break functionality</string>
|
|||||||
<key>AlwaysRenderFriends</key>
|
<key>AlwaysRenderFriends</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Always render friends regardless of max complexity, a value of 2 will only render friends</string>
|
<string>0 - Render avatars with complexity below RenderAvatarMaxComplexity
|
||||||
|
1 - Always renders friends, regardless of max complexity
|
||||||
|
2 - Only renders friends
|
||||||
|
3 - Only renders self</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
|
|||||||
@@ -8630,11 +8630,11 @@ bool LLVOAvatar::isTooComplex() const
|
|||||||
{
|
{
|
||||||
static const LLCachedControl<S32> always_render_friends("AlwaysRenderFriends", 0);
|
static const LLCachedControl<S32> always_render_friends("AlwaysRenderFriends", 0);
|
||||||
bool too_complex;
|
bool too_complex;
|
||||||
if (isSelf() || (always_render_friends && LLAvatarTracker::instance().isBuddy(getID())))
|
if (isSelf() || (always_render_friends && always_render_friends != 3 && LLAvatarTracker::instance().isBuddy(getID())))
|
||||||
{
|
{
|
||||||
too_complex = false;
|
too_complex = false;
|
||||||
}
|
}
|
||||||
else if (always_render_friends == 2)
|
else if (always_render_friends >= 2)
|
||||||
{
|
{
|
||||||
too_complex = true;
|
too_complex = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user