mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-14 02:06:48 +02:00
don't allow null Physics::sessionUUID
This commit is contained in:
parent
aef8ac6bf0
commit
5a81ed73fe
1 changed files with 4 additions and 2 deletions
|
@ -10,10 +10,12 @@
|
|||
//
|
||||
|
||||
#include "PhysicsHelpers.h"
|
||||
#include "NumericalConstants.h"
|
||||
|
||||
#include <QUuid>
|
||||
|
||||
#include "NumericalConstants.h"
|
||||
#include "PhysicsCollisionGroups.h"
|
||||
#include "SharedUtil.h"
|
||||
|
||||
// This chunk of code was copied from Bullet-2.82, so we include the Bullet license here:
|
||||
/*
|
||||
|
@ -91,7 +93,7 @@ int32_t Physics::getDefaultCollisionMask(int32_t group) {
|
|||
QUuid _sessionID;
|
||||
|
||||
void Physics::setSessionUUID(const QUuid& sessionID) {
|
||||
_sessionID = sessionID;
|
||||
_sessionID = sessionID.isNull() ? AVATAR_SELF_ID : sessionID;
|
||||
}
|
||||
|
||||
const QUuid& Physics::getSessionUUID() {
|
||||
|
|
Loading…
Reference in a new issue