mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-27 12:50:24 +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 "PhysicsHelpers.h"
|
||||||
#include "NumericalConstants.h"
|
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
|
||||||
|
#include "NumericalConstants.h"
|
||||||
#include "PhysicsCollisionGroups.h"
|
#include "PhysicsCollisionGroups.h"
|
||||||
|
#include "SharedUtil.h"
|
||||||
|
|
||||||
// This chunk of code was copied from Bullet-2.82, so we include the Bullet license here:
|
// 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;
|
QUuid _sessionID;
|
||||||
|
|
||||||
void Physics::setSessionUUID(const QUuid& sessionID) {
|
void Physics::setSessionUUID(const QUuid& sessionID) {
|
||||||
_sessionID = sessionID;
|
_sessionID = sessionID.isNull() ? AVATAR_SELF_ID : sessionID;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QUuid& Physics::getSessionUUID() {
|
const QUuid& Physics::getSessionUUID() {
|
||||||
|
|
Loading…
Reference in a new issue