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
5048b387
Commit
5048b387
authored
1 year ago
by
Andrey Kleshchev
Browse files
Options
Downloads
Patches
Plain Diff
SL-20101 Fix ThumbnailDimentionsLimit poping up on success
parent
87c33704
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llfloaterchangeitemthumbnail.cpp
+24
-10
24 additions, 10 deletions
indra/newview/llfloaterchangeitemthumbnail.cpp
with
24 additions
and
10 deletions
indra/newview/llfloaterchangeitemthumbnail.cpp
+
24
−
10
View file @
5048b387
...
...
@@ -546,12 +546,21 @@ struct ImageLoadedData
LLUUID
mThumbnailId
;
LLUUID
mObjectId
;
LLHandle
<
LLFloater
>
mFloaterHandle
;
bool
mSilent
;
};
void
LLFloaterChangeItemThumbnail
::
assignAndValidateAsset
(
const
LLUUID
&
asset_id
,
bool
silent
)
{
LLPointer
<
LLViewerFetchedTexture
>
texturep
=
LLViewerTextureManager
::
getFetchedTexture
(
asset_id
);
if
(
texturep
->
getFullWidth
()
==
0
&&
!
texturep
->
isFullyLoaded
()
&&
!
texturep
->
isMissingAsset
())
if
(
texturep
->
isMissingAsset
())
{
LL_WARNS
()
<<
"Attempted to assign missing asset "
<<
asset_id
<<
LL_ENDL
;
if
(
!
silent
)
{
LLNotificationsUtil
::
add
(
"ThumbnailDimentionsLimit"
);
}
}
else
if
(
texturep
->
getFullWidth
()
==
0
)
{
if
(
silent
)
{
...
...
@@ -566,9 +575,10 @@ void LLFloaterChangeItemThumbnail::assignAndValidateAsset(const LLUUID &asset_id
data
->
mObjectId
=
mItemId
;
data
->
mThumbnailId
=
asset_id
;
data
->
mFloaterHandle
=
getHandle
();
data
->
mSilent
=
silent
;
texturep
->
setLoadedCallback
(
onImageLoaded
,
MAX_DISCARD_LEVEL
,
//
d
on't
actually need max one, 3 or 4 should be enough
MAX_DISCARD_LEVEL
,
//
D
on't
need full image, just size data
FALSE
,
FALSE
,
(
void
*
)
data
,
...
...
@@ -648,16 +658,20 @@ void LLFloaterChangeItemThumbnail::onImageLoaded(
{
setThumbnailId
(
data
->
mThumbnailId
,
data
->
mObjectId
);
}
else
if
(
!
data
->
mSilent
)
{
// Should this only appear if floater is alive?
LLNotificationsUtil
::
add
(
"ThumbnailDimentionsLimit"
);
}
}
// Update floater
if
(
!
data
->
mFloaterHandle
.
isDead
())
// Update floater
if
(
!
data
->
mSilent
&&
!
data
->
mFloaterHandle
.
isDead
())
{
LLFloaterChangeItemThumbnail
*
self
=
static_cast
<
LLFloaterChangeItemThumbnail
*>
(
data
->
mFloaterHandle
.
get
());
if
(
self
&&
self
->
mExpectingAssetId
==
data
->
mThumbnailId
)
{
LLFloaterChangeItemThumbnail
*
self
=
static_cast
<
LLFloaterChangeItemThumbnail
*>
(
data
->
mFloaterHandle
.
get
());
if
(
self
&&
self
->
mExpectingAssetId
==
data
->
mThumbnailId
)
{
LLNotificationsUtil
::
add
(
"ThumbnailDimentionsLimit"
);
self
->
mExpectingAssetId
=
LLUUID
::
null
;
}
self
->
mExpectingAssetId
=
LLUUID
::
null
;
}
}
...
...
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