mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 01:13:40 +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
|
||||
instanceVersionRef = -packetTraitVersion;
|
||||
} else {
|
||||
_avatar->processTraitInstance(traitType, instanceID, message.read(traitSize));
|
||||
// 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));
|
||||
} else {
|
||||
message.read(traitSize);
|
||||
}
|
||||
|
||||
instanceVersionRef = packetTraitVersion;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue