Merge remote-tracking branch 'LL/project/gltf_development'

# Conflicts:
#	.gitattributes
master
Ansariel 2024-05-23 22:58:19 +02:00
commit 08fc84e165
3 changed files with 7 additions and 2 deletions

3
.gitattributes vendored
View File

@ -33,3 +33,6 @@ FILES_ARE_UNICODE_UTF-16LE.txt text eol=crlf
# Windows Manifest files
*.manifest text eol=crlf
# Windows Installer Script files (normalization disabled)
*.nsi -text

View File

@ -12948,7 +12948,7 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Comment</key>
<string>0 - complexity limit applies to everyone, 1 - always show friends, 2 - only show friends</string>
<key>Persist</key>
<integer>0</integer>
<integer>1</integer>
<key>Type</key>
<string>S32</string>
<key>Value</key>

View File

@ -9018,9 +9018,11 @@ bool LLVOAvatar::shouldRenderRigged() const
// Maybe better naming could make this clearer?
bool LLVOAvatar::isVisible() const
{
static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
return mDrawable.notNull()
&& (!mOrphaned || isSelf())
&& (mDrawable->isVisible() || mIsDummy);
&& (mDrawable->isVisible() || mIsDummy)
&& (!friends_only() || isUIAvatar() || isSelf() || isControlAvatar() || isBuddy());
}
// Determine if we have enough avatar data to render