diff options
author | Jason <jkirsons@gmail.com> | 2019-05-17 20:49:24 +0200 |
---|---|---|
committer | Jason <jkirsons@gmail.com> | 2019-05-17 20:49:24 +0200 |
commit | 89a9f4621f9848f651b73ab6c7c6321075d0c55c (patch) | |
tree | ecf5c45eebc3ce3a71c31a79c1a8343fe2e02841 /modules/csg | |
parent | ee5ba3e0974caba3e3589d2a53405ef7328dc1b1 (diff) |
Resolve: #24682 CSGPolygon - weird end cap
Diffstat (limited to 'modules/csg')
-rw-r--r-- | modules/csg/csg_shape.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index e70773d914..1d27b9b6f4 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -2082,6 +2082,9 @@ CSGBrush *CSGPolygon::_build_brush() { for (int i = 0; i <= splits; i++) { float ofs = i * path_interval; + if (ofs > bl) { + ofs = bl; + } if (i == splits && path_joined) { ofs = 0.0; } |