diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-08-18 15:11:16 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-08-18 15:12:48 -0300 |
commit | 72be8876ea40984532d283c598dfcc267d30c829 (patch) | |
tree | 50ec987395edb1976e2e0437861d18e7ee7c7ba2 /core/math | |
parent | 3b553377c77c59885a3561f71327e7ca5f0ec9e4 (diff) | |
download | redot-engine-72be8876ea40984532d283c598dfcc267d30c829.tar.gz |
Properly manage drawing of primitives when they lack an area, fixes #8930
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/rect3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/rect3.h b/core/math/rect3.h index 7c971f5ac7..4890a19d99 100644 --- a/core/math/rect3.h +++ b/core/math/rect3.h @@ -47,12 +47,12 @@ public: real_t get_area() const; /// get area _FORCE_INLINE_ bool has_no_area() const { - return (size.x <= CMP_EPSILON || size.y <= CMP_EPSILON || size.z <= CMP_EPSILON); + return (size.x <= 0 || size.y <= 0 || size.z <= 0); } _FORCE_INLINE_ bool has_no_surface() const { - return (size.x <= CMP_EPSILON && size.y <= CMP_EPSILON && size.z <= CMP_EPSILON); + return (size.x <= 0 && size.y <= 0 && size.z <= 0); } const Vector3 &get_position() const { return position; } |