Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
5c70d7ed
Commit
5c70d7ed
authored
9 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
Suppress avatar complexity notices if ShowMyComplexityChanges is zero
parent
7eb14ba3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llavatarrendernotifier.cpp
+11
-11
11 additions, 11 deletions
indra/newview/llavatarrendernotifier.cpp
with
11 additions
and
11 deletions
indra/newview/llavatarrendernotifier.cpp
+
11
−
11
View file @
5c70d7ed
...
@@ -105,12 +105,6 @@ std::string LLAvatarRenderNotifier::overLimitMessage()
...
@@ -105,12 +105,6 @@ std::string LLAvatarRenderNotifier::overLimitMessage()
void
LLAvatarRenderNotifier
::
displayNotification
(
bool
show_over_limit
)
void
LLAvatarRenderNotifier
::
displayNotification
(
bool
show_over_limit
)
{
{
if
(
gAgentCamera
.
getLastCameraMode
()
==
CAMERA_MODE_MOUSELOOK
)
{
LL_WARNS
(
"AvatarRenderInfo"
)
<<
"Suppressing a notification while in mouselook"
<<
LL_ENDL
;
return
;
}
mAgentComplexity
=
mLatestAgentComplexity
;
mAgentComplexity
=
mLatestAgentComplexity
;
mShowOverLimitAgents
=
show_over_limit
;
mShowOverLimitAgents
=
show_over_limit
;
static
LLCachedControl
<
U32
>
expire_delay
(
gSavedSettings
,
"ShowMyComplexityChanges"
,
20
);
static
LLCachedControl
<
U32
>
expire_delay
(
gSavedSettings
,
"ShowMyComplexityChanges"
,
20
);
...
@@ -141,12 +135,18 @@ void LLAvatarRenderNotifier::displayNotification(bool show_over_limit)
...
@@ -141,12 +135,18 @@ void LLAvatarRenderNotifier::displayNotification(bool show_over_limit)
LLNotifications
::
instance
().
cancel
(
mNotificationPtr
);
LLNotifications
::
instance
().
cancel
(
mNotificationPtr
);
}
}
LL_INFOS
(
"AvatarRenderInfo"
)
<<
notification_name
<<
" "
<<
args
<<
LL_ENDL
;
// log unconditionally
LL_WARNS
(
"AvatarRenderInfo"
)
<<
notification_name
<<
" "
<<
args
<<
LL_ENDL
;
mNotificationPtr
=
LLNotifications
::
instance
().
add
(
LLNotification
::
Params
()
if
(
expire_delay
// expiration of zero means do not show the notices
.
name
(
notification_name
)
&&
gAgentCamera
.
getLastCameraMode
()
!=
CAMERA_MODE_MOUSELOOK
// don't display notices in Mouselook
.
expiry
(
expire_date
)
)
.
substitutions
(
args
));
{
mNotificationPtr
=
LLNotifications
::
instance
().
add
(
LLNotification
::
Params
()
.
name
(
notification_name
)
.
expiry
(
expire_date
)
.
substitutions
(
args
));
}
}
}
bool
LLAvatarRenderNotifier
::
isNotificationVisible
()
bool
LLAvatarRenderNotifier
::
isNotificationVisible
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment