diff options
| author | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-12-09 16:27:39 -0500 |
|---|---|---|
| committer | Eric M. Tulla (BigPapi) <tulla@lindenlab.com> | 2009-12-09 16:27:39 -0500 |
| commit | dc8365ff00c5ae33f31d779efa23f7872ec368a7 (patch) | |
| tree | 2168a36bff46b61344489bf0155ad6b8fdb7bcfd /indra/newview/llpreviewtexture.cpp | |
| parent | ed0596cfc7150021fdb37faa77fdf1b51859bc4b (diff) | |
Fix for EXT-2703 & EXT-2708 - save texture as issues
Added save as to texture preview floater. Fixed behavior of save as (was only working for textures, not snapshots).
Removed advanced menu entry for save texture as (refused to work after multiple implementations).
Diffstat (limited to 'indra/newview/llpreviewtexture.cpp')
| -rw-r--r-- | indra/newview/llpreviewtexture.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 698f6152b4..8fa147f201 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -145,6 +145,8 @@ BOOL LLPreviewTexture::postBuild() childSetVisible("Discard", false); } + childSetAction("save_tex_btn", LLPreviewTexture::onSaveAsBtn, this); + if (!mCopyToInv) { const LLInventoryItem* item = getItem(); @@ -164,6 +166,13 @@ BOOL LLPreviewTexture::postBuild() return LLPreview::postBuild(); } +// static +void LLPreviewTexture::onSaveAsBtn(void* data) +{ + LLPreviewTexture* self = (LLPreviewTexture*)data; + self->saveAs(); +} + void LLPreviewTexture::draw() { if (mUpdateDimensions) |
