diff options
author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2025-04-17 20:07:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 20:07:29 -0400 |
commit | 37bbc6faa10fd8abf7c0274dfa3e69ff9062baa2 (patch) | |
tree | 8b250b2727fb45130bbd09716b3350097719dee8 /indra/newview/llpanelsnapshot.cpp | |
parent | 2fb0abbffb407e557f1dba8d9018e65c059ba13f (diff) | |
parent | 67d1838cc0fe5cacbb9daf9fcb8d08b40556b5dd (diff) |
Merge pull request #3932 from Ansariel/develop-snapshot-fixes
Snapshot fixes from archived develop branch
Diffstat (limited to 'indra/newview/llpanelsnapshot.cpp')
-rw-r--r-- | indra/newview/llpanelsnapshot.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llpanelsnapshot.cpp b/indra/newview/llpanelsnapshot.cpp index 32c9f6f402..56c0294dbe 100644 --- a/indra/newview/llpanelsnapshot.cpp +++ b/indra/newview/llpanelsnapshot.cpp @@ -37,6 +37,7 @@ // newview #include "llsidetraypanelcontainer.h" +#include "llsnapshotlivepreview.h" #include "llviewercontrol.h" // gSavedSettings #include "llagentbenefits.h" @@ -99,6 +100,17 @@ void LLPanelSnapshot::onOpen(const LLSD& key) { getParentByType<LLFloater>()->notify(LLSD().with("image-format-change", true)); } + + // If resolution is set to "Current Window", force a snapshot update + // each time a snapshot panel is opened to determine the correct + // image size (and upload fee) depending on the snapshot type. + if (mSnapshotFloater && getChild<LLUICtrl>(getImageSizeComboName())->getValue().asString() == "[i0,i0]") + { + if (LLSnapshotLivePreview* preview = mSnapshotFloater->getPreviewView()) + { + preview->mForceUpdateSnapshot = true; + } + } } LLSnapshotModel::ESnapshotFormat LLPanelSnapshot::getImageFormat() const |