mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 16:55:31 +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) {
|
||||
bool result = scale != 0.0f;
|
||||
bool result = scale != 0.0f && !glm::isnan(scale) && !glm::isinf(scale);
|
||||
assert(result);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue