mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 14:44:01 +02:00
Better guard Transform scale
This commit is contained in:
parent
8a3a7e5b7f
commit
1cab853f18
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ inline bool isValidScale(glm::vec3 scale) {
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool isValidScale(float scale) {
|
inline bool isValidScale(float scale) {
|
||||||
bool result = scale != 0.0f;
|
bool result = scale != 0.0f && !glm::isnan(scale) && !glm::isinf(scale);
|
||||||
assert(result);
|
assert(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue