mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 19:14:59 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into vive-ui
This commit is contained in:
commit
d6095d1f11
2 changed files with 8 additions and 2 deletions
|
@ -135,7 +135,14 @@ void EntityMotionState::handleEasyChanges(uint32_t& flags) {
|
|||
_nextOwnershipBid = 0;
|
||||
}
|
||||
if ((flags & Simulation::DIRTY_PHYSICS_ACTIVATION) && !_body->isActive()) {
|
||||
_body->activate();
|
||||
if (_body->isKinematicObject()) {
|
||||
// only force activate kinematic bodies (dynamic shouldn't need force and
|
||||
// active static bodies are special (see PhysicsEngine::_activeStaticBodies))
|
||||
_body->activate(true);
|
||||
_lastKinematicStep = ObjectMotionState::getWorldSimulationStep();
|
||||
} else {
|
||||
_body->activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <UserActivityLogger.h>
|
||||
#include <PathUtils.h>
|
||||
|
||||
#include <plugins/PluginContainer.h>
|
||||
#include <controllers/UserInputMapper.h>
|
||||
|
||||
const QString SpacemouseManager::NAME { "Spacemouse" };
|
||||
|
|
Loading…
Reference in a new issue