mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-19 00:06:13 +02:00
Use more reasonable value for BaseNestableTransformNode::_baseScale when given bad value
This commit is contained in:
parent
7a9480723e
commit
f40f40e135
1 changed files with 1 additions and 3 deletions
|
@ -21,9 +21,7 @@ public:
|
|||
auto nestablePointer = _spatiallyNestable.lock();
|
||||
if (nestablePointer) {
|
||||
glm::vec3 nestableDimensions = getActualScale(nestablePointer);
|
||||
if (!glm::any(glm::equal(nestableDimensions, glm::vec3(0.0f)))) {
|
||||
_baseScale = nestableDimensions;
|
||||
}
|
||||
_baseScale = glm::max(glm::vec3(0.001f), nestableDimensions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue