diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index 8677028942..1b63b6a8fd 100755 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -48,6 +48,12 @@ #include "lltoolmgr.h" #include "llwebprofile.h" +// FIRE-9621 - Hide Profile panel on Snapshots on non-sl grids +#ifdef OPENSIM +#include "llviewernetwork.h" // isOpenSim() +#endif // OPENSIM +// + ///---------------------------------------------------------------------------- /// Local function declarations, constants, enums, and typedefs ///---------------------------------------------------------------------------- @@ -1170,6 +1176,33 @@ void LLFloaterSnapshot::onOpen(const LLSD& key) // Initialize default tab. getChild("panel_container")->getCurrentPanel()->onOpen(LLSD()); + +// FIRE-9621 +#ifdef OPENSIM + if (!LLGridManager::getInstance()->isInSecondLife()) + { + LLLayoutStack* stackcontainer = findChild("option_buttons"); + if (stackcontainer) + { + LLLayoutPanel* panel_snapshot_profile = stackcontainer->findChild("lp_profile"); + if (panel_snapshot_profile) + { + panel_snapshot_profile->setVisible(FALSE); + } + LLLayoutPanel* panel_snapshot_facebook = stackcontainer->findChild("lp_facebook"); + if (panel_snapshot_facebook) + { + panel_snapshot_facebook->setVisible(FALSE); + } + LLLayoutPanel* panel_snapshot_twitter = stackcontainer->findChild("lp_twitter"); + if (panel_snapshot_twitter) + { + panel_snapshot_twitter->setVisible(FALSE); + } + } + } +#endif // OPENSIM +// } void LLFloaterSnapshot::onClose(bool app_quitting) diff --git a/indra/newview/llpanelsnapshotinventory.cpp b/indra/newview/llpanelsnapshotinventory.cpp index c8a201a5c8..c8ad819a50 100755 --- a/indra/newview/llpanelsnapshotinventory.cpp +++ b/indra/newview/llpanelsnapshotinventory.cpp @@ -35,6 +35,12 @@ #include "llpanelsnapshot.h" #include "llviewercontrol.h" // gSavedSettings +// FIRE-10537 - Temp texture uploads aren't functional on SSB regions +#include "llagent.h" +#include "llviewerregion.h" +#include "llcheckboxctrl.h" +// + /** * The panel provides UI for saving snapshot as an inventory texture. */ @@ -79,6 +85,14 @@ BOOL LLPanelSnapshotInventory::postBuild() void LLPanelSnapshotInventory::onOpen(const LLSD& key) { getChild("hint_lbl")->setTextArg("[UPLOAD_COST]", llformat("%d", LLGlobalEconomy::Singleton::getInstance()->getPriceUpload())); + // FIRE-10537 - Temp texture uploads aren't functional on SSB regions + if (LLGlobalEconomy::Singleton::getInstance()->getPriceUpload() == 0 + || gAgent.getRegion()->getCentralBakeVersion() > 0) + { + gSavedSettings.setBOOL("TemporaryUpload", FALSE); + } + getChild("inventory_temp_upload")->setVisible(LLGlobalEconomy::Singleton::getInstance()->getPriceUpload() > 0 && gAgent.getRegion()->getCentralBakeVersion() == 0); + // LLPanelSnapshot::onOpen(key); } diff --git a/indra/newview/skins/default/xui/de/panel_snapshot_options.xml b/indra/newview/skins/default/xui/de/panel_snapshot_options.xml index 7ec22adc4c..dbaa99ebdf 100755 --- a/indra/newview/skins/default/xui/de/panel_snapshot_options.xml +++ b/indra/newview/skins/default/xui/de/panel_snapshot_options.xml @@ -1,16 +1,26 @@ - + + + + + + + + + + + + + + diff --git a/indra/newview/skins/default/xui/pl/panel_snapshot_options.xml b/indra/newview/skins/default/xui/pl/panel_snapshot_options.xml index 016b9ca197..5308d291e2 100644 --- a/indra/newview/skins/default/xui/pl/panel_snapshot_options.xml +++ b/indra/newview/skins/default/xui/pl/panel_snapshot_options.xml @@ -1,10 +1,26 @@ -