mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:18:24 +02:00
Don't accept avatar entity data in message mixer if no rez permissions
This commit is contained in:
parent
3f01bd9250
commit
e7a97c6117
1 changed files with 7 additions and 1 deletions
|
@ -269,7 +269,13 @@ void AvatarMixerClientData::processSetTraitsMessage(ReceivedMessage& message,
|
||||||
// the avatar mixer uses the negative value of the sent version
|
// the avatar mixer uses the negative value of the sent version
|
||||||
instanceVersionRef = -packetTraitVersion;
|
instanceVersionRef = -packetTraitVersion;
|
||||||
} else {
|
} else {
|
||||||
|
// Don't accept avatar entity data for distribution unless sender has rez permissions on the domain.
|
||||||
|
if (sendingNode.getCanRezAvatarEntities()) {
|
||||||
_avatar->processTraitInstance(traitType, instanceID, message.read(traitSize));
|
_avatar->processTraitInstance(traitType, instanceID, message.read(traitSize));
|
||||||
|
} else {
|
||||||
|
message.read(traitSize);
|
||||||
|
}
|
||||||
|
|
||||||
instanceVersionRef = packetTraitVersion;
|
instanceVersionRef = packetTraitVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue