This commit is contained in:
David Rowe 2021-03-16 14:37:16 +13:00
parent 55dcf6534c
commit 2030d24523
5 changed files with 5 additions and 5 deletions

View file

@ -297,7 +297,7 @@ void AvatarMixerClientData::processSetTraitsMessage(ReceivedMessage& message,
}
}
void AvatarMixerClientData::emulateDeleteEntitiesTraitsMessage(QList<QUuid>& avatarEntityIDs) {
void AvatarMixerClientData::emulateDeleteEntitiesTraitsMessage(const QList<QUuid>& avatarEntityIDs) {
// Emulates processSetTraitsMessage() actions on behalf of an avatar whose canRezAvatarEntities permission has been removed.
// The source avatar should be removing its avatar entities. However, this provides a back-up.

View file

@ -132,7 +132,7 @@ public:
int processPackets(const SlaveSharedData& slaveSharedData); // returns number of packets processed
void processSetTraitsMessage(ReceivedMessage& message, const SlaveSharedData& slaveSharedData, Node& sendingNode);
void emulateDeleteEntitiesTraitsMessage(QList<QUuid>& avatarEntityIDs);
void emulateDeleteEntitiesTraitsMessage(const QList<QUuid>& avatarEntityIDs);
void processBulkAvatarTraitsAckMessage(ReceivedMessage& message);
void checkSkeletonURLAgainstWhitelist(const SlaveSharedData& slaveSharedData, Node& sendingNode,
AvatarTraits::TraitVersion traitVersion);

View file

@ -1588,7 +1588,7 @@ void MyAvatar::addAvatarEntitiesToTree() {
}
}
bool MyAvatar::hasAvatarEntities() {
bool MyAvatar::hasAvatarEntities() const {
return _cachedAvatarEntityBlobs.count() > 0;
}

View file

@ -1454,7 +1454,7 @@ public:
void removeWornAvatarEntity(const EntityItemID& entityID);
void clearWornAvatarEntities();
bool hasAvatarEntities();
bool hasAvatarEntities() const;
/**jsdoc
* Checks whether your avatar is flying.

View file

@ -833,7 +833,7 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
// Don't continue login to the domain if have avatar entities and don't have permissions to rez them, unless user has OKed
// continuing login.
if (!newPermissions.can(NodePermissions::Permission::canRezAvatarEntities)
&& (!adjustedPermissions || !_domainHandler.canConnectWithoutAvatarEntities())) {
&& (!adjustedPermissions || !_domainHandler.canConnectWithoutAvatarEntities())) {
return;
}