diff --git a/indra/newview/llpanelsnapshotinventory.cpp b/indra/newview/llpanelsnapshotinventory.cpp index 74c5f28de8..3142048cb8 100644 --- 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. */ @@ -86,6 +92,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(FALSE); + } + // LLPanelSnapshot::onOpen(key); }