summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-03-29 05:54:13 +0800
committerErik Kundiman <erik@megapahit.org>2025-03-29 05:54:13 +0800
commitf6f22cf804c3bb0192c3215c05a89e78288c4d7c (patch)
treeb5ce9d70574bfb38600fe7b0421e9014fd82213e
parent1c5777bd52bc581841d832b52572370395f86ff7 (diff)
parent4e80ec7e962dde43c8d7379f0167a242704336ad (diff)
Merge tag 'Second_Life_Release#4e80ec7e-2025.03' into 2025.03
-rw-r--r--indra/llui/lltexteditor.cpp11
-rw-r--r--indra/newview/app_settings/shaders/class3/environment/waterF.glsl5
-rw-r--r--indra/newview/llfloaterimcontainer.cpp6
3 files changed, 16 insertions, 6 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 3537c764b9..77a4976f6b 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -209,8 +209,15 @@ public:
}
virtual bool execute( LLTextBase* editor, S32* delta )
{
- mWString = editor->getWText().substr(getPosition(), mLen);
- *delta = remove(editor, getPosition(), mLen );
+ try
+ {
+ mWString = editor->getWText().substr(getPosition(), mLen);
+ *delta = remove(editor, getPosition(), mLen);
+ }
+ catch (std::out_of_range&)
+ {
+ return false;
+ }
return (*delta != 0);
}
virtual S32 undo( LLTextBase* editor )
diff --git a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl
index 366335b4f6..b9de4edc67 100644
--- a/indra/newview/app_settings/shaders/class3/environment/waterF.glsl
+++ b/indra/newview/app_settings/shaders/class3/environment/waterF.glsl
@@ -26,7 +26,6 @@
// class3/environment/waterF.glsl
#define WATER_MINIMAL 1
-#define SHORELINE_FADE 1
out vec4 frag_color;
@@ -269,9 +268,9 @@ void main()
#ifdef SHORELINE_FADE
fade = max(0.0,min(1.0, (pos.z - refPos.z) / 10.0));
#else
- fade = 1.0 * water_mask;
+ fade = 1.0;
#endif
-
+ fade *= water_mask;
distort2 = mix(distort, distort2, min(1.0, fade * 10.0));
depth = texture(depthMap, distort2).r;
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index 920f2b1698..4fed8eebb8 100644
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -1947,7 +1947,7 @@ bool LLFloaterIMContainer::removeConversationListItem(const LLUUID& uuid, bool c
mConversationEventQueue.erase(uuid);
// Don't let the focus fall IW, select and refocus on the first conversation in the list
- if (change_focus)
+ if (change_focus && isInVisibleChain())
{
setFocus(true);
if (new_selection)
@@ -1967,6 +1967,10 @@ bool LLFloaterIMContainer::removeConversationListItem(const LLUUID& uuid, bool c
}
}
}
+ else
+ {
+ LL_INFOS() << "Conversation widgets: " << (S32)mConversationsWidgets.size() << LL_ENDL;
+ }
return is_widget_selected;
}