File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 37
37
38
38
// newview
39
39
#include " llsidetraypanelcontainer.h"
40
+ #include " llsnapshotlivepreview.h"
40
41
#include " llviewercontrol.h" // gSavedSettings
41
42
42
43
#include " llagentbenefits.h"
@@ -99,6 +100,17 @@ void LLPanelSnapshot::onOpen(const LLSD& key)
99
100
{
100
101
getParentByType<LLFloater>()->notify (LLSD ().with (" image-format-change" , true ));
101
102
}
103
+
104
+ // If resolution is set to "Current Window", force a snapshot update
105
+ // each time a snapshot panel is opened to determine the correct
106
+ // image size (and upload fee) depending on the snapshot type.
107
+ if (mSnapshotFloater && getChild<LLUICtrl>(getImageSizeComboName ())->getValue ().asString () == " [i0,i0]" )
108
+ {
109
+ if (LLSnapshotLivePreview* preview = mSnapshotFloater ->getPreviewView ())
110
+ {
111
+ preview->mForceUpdateSnapshot = true ;
112
+ }
113
+ }
102
114
}
103
115
104
116
LLSnapshotModel::ESnapshotFormat LLPanelSnapshot::getImageFormat () const
Original file line number Diff line number Diff line change 16
16
<spinner label =" " name =" inventory_snapshot_height" />
17
17
<check_box label =" 縦横比の固定" name =" inventory_keep_aspect_check" />
18
18
<text name =" hint_lbl" >
19
- 画像をテクスチャとして保存する場合は、いずれかの正方形を選択してください 。
19
+ 画像をインベントリに保存するには L$[UPLOAD_COST] の費用がかかります。画像をテクスチャとして保存するには平方形式の 1 つを選択してください 。
20
20
</text >
21
21
<button label =" キャンセル" name =" cancel_btn" />
22
22
<button label =" 保存" name =" save_btn" />
You can’t perform that action at this time.
0 commit comments