mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 21:53:12 +02:00
Expand setDimensions check to negative values
This commit is contained in:
parent
1c3398f27e
commit
f07f9ac0c5
1 changed files with 1 additions and 1 deletions
|
@ -1007,7 +1007,7 @@ void EntityItem::setTranformToCenter(const Transform& transform) {
|
|||
}
|
||||
|
||||
void EntityItem::setDimensions(const glm::vec3& value) {
|
||||
if (value.x == 0.0f || value.y == 0.0f || value.z == 0.0f) {
|
||||
if (value.x <= 0.0f || value.y <= 0.0f || value.z <= 0.0f) {
|
||||
return;
|
||||
}
|
||||
_transform.setScale(value);
|
||||
|
|
Loading…
Reference in a new issue