From 692f5d424e7ccf486338df67c40f84ba47305b35 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 2 Mar 2022 21:12:15 +0100 Subject: [PATCH] Fix broken 360 snapshot saves --- indra/newview/llmediactrl.cpp | 4 ++++ indra/newview/llviewermedia.cpp | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp index 4a5b6243f3..b5296d4f08 100644 --- a/indra/newview/llmediactrl.cpp +++ b/indra/newview/llmediactrl.cpp @@ -1182,6 +1182,10 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) } else { + // Fix broken 360 snapshot save + const std::vector empty_response; + self->sendPickFileResponse(empty_response); + // LLNotificationsUtil::add("MediaFileDownloadUnsupported"); } }; diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 2217a10d8e..31acf93ac5 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -3261,11 +3261,13 @@ void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginCla case LLViewerMediaObserver::MEDIA_EVENT_FILE_DOWNLOAD: { - LL_DEBUGS("Media") << "Media event - file download requested - filename is " << plugin->getFileDownloadFilename() << LL_ENDL; + // Fix broken 360 snapshot save + //LL_DEBUGS("Media") << "Media event - file download requested - filename is " << plugin->getFileDownloadFilename() << LL_ENDL; - //unblock media plugin - const std::vector empty_response; - plugin->sendPickFileResponse(empty_response); + ////unblock media plugin + //const std::vector empty_response; + //plugin->sendPickFileResponse(empty_response); + // } break;