From f07f9ac0c50e8dd79d752837d7da55dcab116884 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Fri, 29 May 2015 17:04:39 +0200 Subject: [PATCH] Expand setDimensions check to negative values --- libraries/entities/src/EntityItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entities/src/EntityItem.cpp b/libraries/entities/src/EntityItem.cpp index 6073f2150b..eeadb75f43 100644 --- a/libraries/entities/src/EntityItem.cpp +++ b/libraries/entities/src/EntityItem.cpp @@ -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);