mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 11:55:25 +02:00
Merge pull request #6407 from jherico/dargo
Exclude avatar scales out of the permissable range
This commit is contained in:
commit
ba922290a4
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -531,7 +531,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