mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Exclude avatar scales out of the permissable range
This commit is contained in:
parent
2b07daa976
commit
0ad1d08041
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ float AvatarData::getTargetScale() const {
|
|||
|
||||
void AvatarData::setTargetScale(float targetScale, bool overideReferential) {
|
||||
if (!_referential || overideReferential) {
|
||||
_targetScale = targetScale;
|
||||
_targetScale = std::max(MIN_AVATAR_SCALE, std::min(MAX_AVATAR_SCALE, targetScale));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ int AvatarData::parseDataFromBuffer(const QByteArray& buffer) {
|
|||
}
|
||||
return maxAvailableSize;
|
||||
}
|
||||
_targetScale = scale;
|
||||
_targetScale = std::max(MIN_AVATAR_SCALE, std::min(MAX_AVATAR_SCALE, scale));
|
||||
} // 20 bytes
|
||||
|
||||
{ // Lookat Position
|
||||
|
|
Loading…
Reference in a new issue