History

Merge branch 'master' of github.com:highfidelity/hifi into improve-rotation-jitter

Dante Ruiz committed 9 years ago

Commit 54d63f52 parents ffcc3c8 a7b9fbb83 files · +935 −621Browse files

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

Unified · Split

interface/src/Application.cpp+6−6
@@ -431,7 +431,7 @@ static const QString STATE_ADVANCED_MOVEMENT_CONTROLS = "AdvancedMovement"; · 430 unmodified lines
431431 static const QString STATE_GROUNDED = "Grounded";
432432 static const QString STATE_NAV_FOCUSED = "NavigationFocused";
433433
434−bool setupEssentials(int& argc, char** argv) {
434+bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
435435 const char** constArgv = const_cast<const char**>(argv);
436436 const char* portStr = getCmdOption(argc, constArgv, "--listenPort");
437437 const int listenPort = portStr ? atoi(portStr) : INVALID_PORT;
@@ -458,7 +458,7 @@ bool setupEssentials(int& argc, char** argv) { · 20 unmodified lines
458458
459459 static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";
460460 bool suppressPrompt = cmdOptionExists(argc, const_cast<const char**>(argv), SUPPRESS_SETTINGS_RESET);
461− bool previousSessionCrashed = CrashHandler::checkForResetSettings(suppressPrompt);
461+ bool previousSessionCrashed = CrashHandler::checkForResetSettings(runningMarkerExisted, suppressPrompt);
462462
463463 DependencyManager::registerInheritance<LimitedNodeList, NodeList>();
464464 DependencyManager::registerInheritance<AvatarHashMap, AvatarManager>();
@@ -563,11 +563,11 @@ const bool DEFAULT_DESKTOP_TABLET_BECOMES_TOOLBAR = true; · 98 unmodified lines
563563 const bool DEFAULT_HMD_TABLET_BECOMES_TOOLBAR = false;
564564 const bool DEFAULT_PREFER_AVATAR_FINGER_OVER_STYLUS = false;
565565
566−Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :
566+Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bool runningMarkerExisted) :
567567 QApplication(argc, argv),
568568 _window(new MainWindow(desktop())),
569569 _sessionRunTimer(startupTimer),
570− _previousSessionCrashed(setupEssentials(argc, argv)),
570+ _previousSessionCrashed(setupEssentials(argc, argv, runningMarkerExisted)),
571571 _undoStackScriptingInterface(&_undoStack),
572572 _entitySimulation(new PhysicalEntitySimulation()),
573573 _physicsEngine(new PhysicsEngine(Vectors::ZERO)),
@@ -3972,7 +3972,7 @@ void Application::updateMyAvatarLookAtPosition() { · 3398 unmodified lines
39723972 if (faceAngle < MAXIMUM_FACE_ANGLE) {
39733973 // Randomly look back and forth between look targets
39743974 eyeContactTarget target = Menu::getInstance()->isOptionChecked(MenuOption::FixGaze) ?
3975− LEFT_EYE : myAvatar->getEyeContactTarget();
3975+ LEFT_EYE : myAvatar->getEyeContactTarget();
39763976 switch (target) {
39773977 case LEFT_EYE:
39783978 lookAtSpot = lookingAtHead->getLeftEyePosition();
@@ -6425,7 +6425,7 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa · 2446 unmodified lines
64256425 if (!includeAnimated) {
64266426 // Tell the dependency manager that the capture of the still snapshot has taken place.
64276427 emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(path, notify);
6428− } else {
6428+ } else if (!SnapshotAnimated::isAlreadyTakingSnapshotAnimated()) {
64296429 // Get an animated GIF snapshot and save it
64306430 SnapshotAnimated::saveSnapshotAnimated(path, aspectRatio, qApp, DependencyManager::get<WindowScriptingInterface>());
64316431 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t