mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 16:36:55 +02:00
sync
This commit is contained in:
parent
902e84c711
commit
ad85837b5a
2 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,8 @@ public:
|
|||
DIRTY_MOTION_TYPE = 0x0010,
|
||||
DIRTY_SHAPE = 0x0020,
|
||||
DIRTY_LIFETIME = 0x0040,
|
||||
DIRTY_UPDATEABLE = 0x0080
|
||||
DIRTY_UPDATEABLE = 0x0080,
|
||||
DIRTY_TWEAK = 0x0100
|
||||
};
|
||||
|
||||
DONT_ALLOW_INSTANTIATION // This class can not be instantiated directly
|
||||
|
|
|
@ -114,9 +114,7 @@ void EntityMotionState::setWorldTransform(const btTransform& worldTrans) {
|
|||
|
||||
_entity->setLastSimulated(usecTimestampNow());
|
||||
|
||||
bool isStill = (v == vec3(0.0f)) && (av == vec3(0.0f));
|
||||
|
||||
if (_entity->getSimulatorID().isNull() && !isStill) {
|
||||
if (_entity->getSimulatorID().isNull() && isMoving()) {
|
||||
// object is moving and has no owner. attempt to claim simulation ownership.
|
||||
// setShouldClaimSimulationOwnership(true);
|
||||
}
|
||||
|
@ -342,6 +340,7 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
qCDebug(physics) << "EntityMotionState::sendUpdate()... calling queueEditEntityMessage()...";
|
||||
#endif
|
||||
|
||||
qDebug() << "sending";
|
||||
entityPacketSender->queueEditEntityMessage(PacketTypeEntityAddOrEdit, id, properties);
|
||||
} else {
|
||||
#ifdef WANT_DEBUG
|
||||
|
|
Loading…
Reference in a new issue