summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-08-21 23:55:00 +0300
committerGitHub <noreply@github.com>2023-08-21 23:55:00 +0300
commit0b6c9c50c3049eb75a0305376d067bf8982e184d (patch)
treea8e3497057e5b170e3a9ca22c9161822c149cbd6 /indra/newview
parentb07a9cfec36cdcad604b8aa775ed282793116a4d (diff)
SL-20173 show warning notification when trying to add invalid files as local texture
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lllocalbitmaps.cpp3
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml10
2 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index de8db69e19..72ef365a6d 100644
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -982,6 +982,9 @@ bool LLLocalBitmapMgr::checkTextureDimensions(std::string filename)
LLImageDimensionsInfo image_info;
if (!image_info.load(filename,codec))
{
+ LLSD args;
+ args["NAME"] = gDirUtilp->getBaseFileName(filename);
+ LLNotificationsUtil::add(image_info.getWarningName(), args);
return false;
}
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index a216ef7c0d..a4b73879b8 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -11986,5 +11986,13 @@ Would you like to save them first?
notext="No"
yestext="Yes"/>
</notification>
-
+
+ <notification
+ icon="notifytip.tga"
+ name="IncorrectFormat"
+ priority="high"
+ type="notifytip">
+Unable to upload &apos;[NAME]&apos; due to the following reason: incorrect image format.
+ </notification>
+
</notifications>