mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
Use process function for overrides
This commit is contained in:
parent
3221e1dbd5
commit
88a19f26e2
2 changed files with 2 additions and 3 deletions
|
@ -30,7 +30,6 @@ namespace AvatarTraits {
|
|||
// Simple traits
|
||||
SkeletonModelURL = 0,
|
||||
|
||||
|
||||
// Instanced traits
|
||||
FirstInstancedTrait,
|
||||
AvatarEntity = FirstInstancedTrait,
|
||||
|
|
|
@ -165,11 +165,11 @@ void ClientTraitsHandler::processTraitOverride(QSharedPointer<ReceivedMessage> m
|
|||
|
||||
// override the skeleton URL but do not mark the trait as having changed
|
||||
// so that we don't unecessarily send a new trait packet to the mixer with the overriden URL
|
||||
auto encodedSkeletonURL = QUrl::fromEncoded(message->readWithoutCopy(traitBinarySize));
|
||||
|
||||
auto hasChangesBefore = _hasChangedTraits;
|
||||
|
||||
_owningAvatar->setSkeletonModelURL(encodedSkeletonURL);
|
||||
auto traitBinaryData = message->readWithoutCopy(traitBinarySize);
|
||||
_owningAvatar->processTrait(traitType, traitBinaryData);
|
||||
|
||||
// setSkeletonModelURL will flag us for changes to the SkeletonModelURL so we reset some state here to
|
||||
// avoid unnecessarily sending the overriden skeleton model URL back to the mixer
|
||||
|
|
Loading…
Reference in a new issue