History

Merge branch 'master' of github.com:highfidelity/hifi into head-controller

Seth Alves committed 9 years ago

Commit d91b3702 parents 2766475 bc2311c22 files · +145 −76Browse files

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

Unified · Split

interface/src/Application.cpp+9−2
@@ -1459,6 +1459,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1458 unmodified lines
14591459 updateSystemTabletMode();
14601460
14611461 connect(&_myCamera, &Camera::modeUpdated, this, &Application::cameraModeChanged);
1462+
1463+ qCDebug(interfaceapp) << "Metaverse session ID is" << uuidStringWithoutCurlyBraces(accountManager->getSessionID());
14621464 }
14631465
14641466 void Application::domainConnectionRefused(const QString& reasonMessage, int reasonCodeInt, const QString& extraInfo) {
@@ -1681,6 +1683,10 @@ Application::~Application() { · 216 unmodified lines
16811683
16821684 _physicsEngine->setCharacterController(nullptr);
16831685
1686+ // the _shapeManager should have zero references
1687+ _shapeManager.collectGarbage();
1688+ assert(_shapeManager.getNumShapes() == 0);
1689+
16841690 // shutdown render engine
16851691 _main3DScene = nullptr;
16861692 _renderEngine = nullptr;
@@ -4492,12 +4498,13 @@ void Application::update(float deltaTime) { · 2805 unmodified lines
44924498
44934499 getEntities()->getTree()->withWriteLock([&] {
44944500 PerformanceTimer perfTimer("handleOutgoingChanges");
4495− const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
4496− _entitySimulation->handleDeactivatedMotionStates(deactivations);
44974501
44984502 const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
44994503 _entitySimulation->handleChangedMotionStates(outgoingChanges);
45004504 avatarManager->handleChangedMotionStates(outgoingChanges);
4505+
4506+ const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
4507+ _entitySimulation->handleDeactivatedMotionStates(deactivations);
45014508 });
45024509
45034510 if (!_aboutToQuit) {