mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:37:46 +02:00
Repair Application.cpp
This commit is contained in:
parent
a705e722f1
commit
1f478bdf13
1 changed files with 0 additions and 13 deletions
|
@ -1683,9 +1683,6 @@ Application::~Application() {
|
||||||
|
|
||||||
_physicsEngine->setCharacterController(nullptr);
|
_physicsEngine->setCharacterController(nullptr);
|
||||||
|
|
||||||
// shutdown render engine
|
|
||||||
_main3DScene = nullptr;
|
|
||||||
_renderEngine = nullptr;
|
|
||||||
// the _shapeManager should have zero references
|
// the _shapeManager should have zero references
|
||||||
_shapeManager.collectGarbage();
|
_shapeManager.collectGarbage();
|
||||||
assert(_shapeManager.getNumShapes() == 0);
|
assert(_shapeManager.getNumShapes() == 0);
|
||||||
|
@ -4497,17 +4494,7 @@ void Application::update(float deltaTime) {
|
||||||
|
|
||||||
getEntities()->getTree()->withWriteLock([&] {
|
getEntities()->getTree()->withWriteLock([&] {
|
||||||
PerformanceTimer perfTimer("handleOutgoingChanges");
|
PerformanceTimer perfTimer("handleOutgoingChanges");
|
||||||
const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
|
|
||||||
_entitySimulation->handleDeactivatedMotionStates(deactivations);
|
|
||||||
getEntities()->getTree()->withWriteLock([&] {
|
|
||||||
PerformanceTimer perfTimer("handleOutgoingChanges");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
|
|
||||||
_entitySimulation->handleChangedMotionStates(outgoingChanges);
|
|
||||||
avatarManager->handleChangedMotionStates(outgoingChanges);
|
|
||||||
});
|
|
||||||
const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
|
const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
|
||||||
_entitySimulation->handleChangedMotionStates(outgoingChanges);
|
_entitySimulation->handleChangedMotionStates(outgoingChanges);
|
||||||
avatarManager->handleChangedMotionStates(outgoingChanges);
|
avatarManager->handleChangedMotionStates(outgoingChanges);
|
||||||
|
|
Loading…
Reference in a new issue