mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +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) {
|
void AvatarData::setTargetScale(float targetScale, bool overideReferential) {
|
||||||
if (!_referential || 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;
|
return maxAvailableSize;
|
||||||
}
|
}
|
||||||
_targetScale = scale;
|
_targetScale = std::max(MIN_AVATAR_SCALE, std::min(MAX_AVATAR_SCALE, scale));
|
||||||
} // 20 bytes
|
} // 20 bytes
|
||||||
|
|
||||||
{ // Lookat Position
|
{ // Lookat Position
|
||||||
|
|
Loading…
Reference in a new issue