History

Merge branch 'master' of github.com:highfidelity/hifi into multi-hull-collisions

Seth Alves committed 11 years ago

Commit fd69a542 parents cfa3059 80ecbed25 files · +327 −389Browse files

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

Unified · Split

interface/src/Application.cpp+3−18
@@ -796,7 +796,7 @@ void Application::paintGL() { · 795 unmodified lines
796796
797797 DependencyManager::get<GlowEffect>()->render();
798798
799− if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
799+ {
800800 PerformanceTimer perfTimer("renderOverlay");
801801 _applicationOverlay.renderOverlay(true);
802802 _applicationOverlay.displayOverlayTexture();
@@ -994,12 +994,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 191 unmodified lines
994994 resetSensors();
995995 break;
996996
997− case Qt::Key_G:
998− if (isShifted) {
999− Menu::getInstance()->triggerOption(MenuOption::ObeyEnvironmentalGravity);
1000− }
1001− break;
1002−
1003997 case Qt::Key_A:
1004998 if (isShifted) {
1005999 Menu::getInstance()->triggerOption(MenuOption::Atmosphere);
@@ -1134,13 +1128,10 @@ void Application::keyPressEvent(QKeyEvent* event) { · 128 unmodified lines
11341128 Menu::getInstance()->triggerOption(MenuOption::FullscreenMirror);
11351129 }
11361130 break;
1137− case Qt::Key_Slash:
1138− Menu::getInstance()->triggerOption(MenuOption::UserInterface);
1139− break;
11401131 case Qt::Key_P:
11411132 Menu::getInstance()->triggerOption(MenuOption::FirstPerson);
11421133 break;
1143− case Qt::Key_Percent:
1134+ case Qt::Key_Slash:
11441135 Menu::getInstance()->triggerOption(MenuOption::Stats);
11451136 break;
11461137 case Qt::Key_Plus:
@@ -1175,10 +1166,6 @@ void Application::keyPressEvent(QKeyEvent* event) { · 28 unmodified lines
11751166 break;
11761167 }
11771168
1178− case Qt::Key_Comma: {
1179− _myAvatar->togglePhysicsEnabled();
1180− }
1181−
11821169 default:
11831170 event->ignore();
11841171 break;
@@ -2205,7 +2192,6 @@ void Application::update(float deltaTime) { · 1020 unmodified lines
22052192
22062193 {
22072194 PerformanceTimer perfTimer("physics");
2208− _myAvatar->preSimulation();
22092195 _physicsEngine.stepSimulation();
22102196 }
22112197
@@ -3029,8 +3015,7 @@ void Application::displaySide(Camera& theCamera, bool selfAvatarOnly, RenderArgs · 817 unmodified lines
30293015 _nodeBoundsDisplay.draw();
30303016
30313017 // Render the world box
3032− if (theCamera.getMode() != CAMERA_MODE_MIRROR && Menu::getInstance()->isOptionChecked(MenuOption::Stats) &&
3033− Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
3018+ if (theCamera.getMode() != CAMERA_MODE_MIRROR && Menu::getInstance()->isOptionChecked(MenuOption::Stats)) {
30343019 PerformanceTimer perfTimer("worldBox");
30353020 renderWorldBox();
30363021 }