mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
use glm::clamp() instead of std::min() and max()
This commit is contained in:
parent
9b0c199ed7
commit
7baee8c391
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ float AvatarData::getTargetScale() const {
|
|||
}
|
||||
|
||||
void AvatarData::setTargetScale(float targetScale) {
|
||||
_targetScale = std::max(MIN_AVATAR_SCALE, std::min(MAX_AVATAR_SCALE, targetScale));
|
||||
_targetScale = glm::clamp(targetScale, MIN_AVATAR_SCALE, MAX_AVATAR_SCALE);
|
||||
}
|
||||
|
||||
void AvatarData::setTargetScaleVerbose(float targetScale) {
|
||||
|
|
Loading…
Reference in a new issue