History

merge with master

SamGondelman committed 9 years ago

Commit 2fb19812 parents 179f132 0b6cc6b139 files · +3114 −1588Browse files

Showing the changes to interface/src/Application.cpp (1 of 139 files). Show all

Unified · Split

interface/src/Application.cpp+8−4
@@ -2713,7 +2713,7 @@ bool Application::importFromZIP(const QString& filePath) { · 2712 unmodified lines
27132713 qDebug() << "A zip file has been dropped in: " << filePath;
27142714 QUrl empty;
27152715 // handle Blocks download from Marketplace
2716− if (filePath.contains("vr.google.com/downloads")) {
2716+ if (filePath.contains("poly.google.com/downloads")) {
27172717 addAssetToWorldFromURL(filePath);
27182718 } else {
27192719 qApp->getFileDownloadInterface()->runUnzip(filePath, empty, true, true, false);
@@ -4461,7 +4461,7 @@ void Application::cameraModeChanged() { · 1741 unmodified lines
44614461 void Application::cameraMenuChanged() {
44624462 auto menu = Menu::getInstance();
44634463 if (menu->isOptionChecked(MenuOption::FullscreenMirror)) {
4464− if (_myCamera.getMode() != CAMERA_MODE_MIRROR) {
4464+ if (!isHMDMode() && _myCamera.getMode() != CAMERA_MODE_MIRROR) {
44654465 _myCamera.setMode(CAMERA_MODE_MIRROR);
44664466 getMyAvatar()->reset(false, false, false); // to reset any active MyAvatar::FollowHelpers
44674467 }
@@ -6259,7 +6259,7 @@ void Application::addAssetToWorldFromURL(QString url) { · 1791 unmodified lines
62596259 if (url.contains("filename")) {
62606260 filename = url.section("filename=", 1, 1); // Filename is in "?filename=" parameter at end of URL.
62616261 }
6262− if (url.contains("vr.google.com/downloads")) {
6262+ if (url.contains("poly.google.com/downloads")) {
62636263 filename = url.section('/', -1);
62646264 if (url.contains("noDownload")) {
62656265 filename.remove(".zip?noDownload=false");
@@ -6294,7 +6294,7 @@ void Application::addAssetToWorldFromURLRequestFinished() { · 28 unmodified lines
62946294 if (url.contains("filename")) {
62956295 filename = url.section("filename=", 1, 1); // Filename is in "?filename=" parameter at end of URL.
62966296 }
6297− if (url.contains("vr.google.com/downloads")) {
6297+ if (url.contains("poly.google.com/downloads")) {
62986298 filename = url.section('/', -1);
62996299 if (url.contains("noDownload")) {
63006300 filename.remove(".zip?noDownload=false");
@@ -7295,6 +7295,10 @@ void Application::updateDisplayMode() { · 994 unmodified lines
72957295 menu->setIsOptionChecked(MenuOption::FirstPerson, true);
72967296 cameraMenuChanged();
72977297 }
7298+
7299+ // Remove the mirror camera option from menu if in HMD mode
7300+ auto mirrorAction = menu->getActionForOption(MenuOption::FullscreenMirror);
7301+ mirrorAction->setVisible(!isHmd);
72987302
72997303 Q_ASSERT_X(_displayPlugin, "Application::updateDisplayMode", "could not find an activated display plugin");
73007304 }