Force snapshot update when opening a snapshot panel and the resolution is "Current Window" to determine correct image size and upload cost
parent
85cf1d7ebe
commit
67d1838cc0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<spinner label="" name="inventory_snapshot_height"/>
|
||||
<check_box label="縦横比の固定" name="inventory_keep_aspect_check"/>
|
||||
<text name="hint_lbl">
|
||||
画像をテクスチャとして保存する場合は、いずれかの正方形を選択してください。
|
||||
画像をインベントリに保存するには L$[UPLOAD_COST] の費用がかかります。画像をテクスチャとして保存するには平方形式の 1 つを選択してください。
|
||||
</text>
|
||||
<button label="キャンセル" name="cancel_btn"/>
|
||||
<button label="保存" name="save_btn"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue