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
431static const QString STATE_GROUNDED = "Grounded";431static const QString STATE_GROUNDED = "Grounded";
432static const QString STATE_NAV_FOCUSED = "NavigationFocused";432static const QString STATE_NAV_FOCUSED = "NavigationFocused";
433 433
434bool setupEssentials(int& argc, char** argv) {434bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
435 const char** constArgv = const_cast<const char**>(argv);435 const char** constArgv = const_cast<const char**>(argv);
436 const char* portStr = getCmdOption(argc, constArgv, "--listenPort");436 const char* portStr = getCmdOption(argc, constArgv, "--listenPort");
437 const int listenPort = portStr ? atoi(portStr) : INVALID_PORT;437 const int listenPort = portStr ? atoi(portStr) : INVALID_PORT;
@@ -458,7 +458,7 @@ bool setupEssentials(int& argc, char** argv) { · 20 unmodified lines
458 458
459 static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";459 static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";
460 bool suppressPrompt = cmdOptionExists(argc, const_cast<const char**>(argv), SUPPRESS_SETTINGS_RESET);460 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);
462 462
463 DependencyManager::registerInheritance<LimitedNodeList, NodeList>();463 DependencyManager::registerInheritance<LimitedNodeList, NodeList>();
464 DependencyManager::registerInheritance<AvatarHashMap, AvatarManager>();464 DependencyManager::registerInheritance<AvatarHashMap, AvatarManager>();
@@ -563,11 +563,11 @@ const bool DEFAULT_DESKTOP_TABLET_BECOMES_TOOLBAR = true; · 98 unmodified lines
563const bool DEFAULT_HMD_TABLET_BECOMES_TOOLBAR = false;563const bool DEFAULT_HMD_TABLET_BECOMES_TOOLBAR = false;
564const bool DEFAULT_PREFER_AVATAR_FINGER_OVER_STYLUS = false;564const bool DEFAULT_PREFER_AVATAR_FINGER_OVER_STYLUS = false;
565 565
566Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :566Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bool runningMarkerExisted) :
567 QApplication(argc, argv),567 QApplication(argc, argv),
568 _window(new MainWindow(desktop())),568 _window(new MainWindow(desktop())),
569 _sessionRunTimer(startupTimer),569 _sessionRunTimer(startupTimer),
570 _previousSessionCrashed(setupEssentials(argc, argv)),570 _previousSessionCrashed(setupEssentials(argc, argv, runningMarkerExisted)),
571 _undoStackScriptingInterface(&_undoStack),571 _undoStackScriptingInterface(&_undoStack),
572 _entitySimulation(new PhysicalEntitySimulation()),572 _entitySimulation(new PhysicalEntitySimulation()),
573 _physicsEngine(new PhysicsEngine(Vectors::ZERO)),573 _physicsEngine(new PhysicsEngine(Vectors::ZERO)),
@@ -3972,7 +3972,7 @@ void Application::updateMyAvatarLookAtPosition() { · 3398 unmodified lines
3972 if (faceAngle < MAXIMUM_FACE_ANGLE) {3972 if (faceAngle < MAXIMUM_FACE_ANGLE) {
3973 // Randomly look back and forth between look targets3973 // Randomly look back and forth between look targets
3974 eyeContactTarget target = Menu::getInstance()->isOptionChecked(MenuOption::FixGaze) ?3974 eyeContactTarget target = Menu::getInstance()->isOptionChecked(MenuOption::FixGaze) ?
3975 LEFT_EYE : myAvatar->getEyeContactTarget();3975 LEFT_EYE : myAvatar->getEyeContactTarget();
3976 switch (target) {3976 switch (target) {
3977 case LEFT_EYE:3977 case LEFT_EYE:
3978 lookAtSpot = lookingAtHead->getLeftEyePosition();3978 lookAtSpot = lookingAtHead->getLeftEyePosition();
@@ -6425,7 +6425,7 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa · 2446 unmodified lines
6425 if (!includeAnimated) {6425 if (!includeAnimated) {
6426 // Tell the dependency manager that the capture of the still snapshot has taken place.6426 // Tell the dependency manager that the capture of the still snapshot has taken place.
6427 emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(path, notify);6427 emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(path, notify);
6428 } else {6428 } else if (!SnapshotAnimated::isAlreadyTakingSnapshotAnimated()) {
6429 // Get an animated GIF snapshot and save it6429 // Get an animated GIF snapshot and save it
6430 SnapshotAnimated::saveSnapshotAnimated(path, aspectRatio, qApp, DependencyManager::get<WindowScriptingInterface>());6430 SnapshotAnimated::saveSnapshotAnimated(path, aspectRatio, qApp, DependencyManager::get<WindowScriptingInterface>());
6431 }6431 }

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