From 2da174c9b47a8450600b859ba564c4b5c1015dee Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 17 May 2019 20:49:24 +0200 Subject: [PATCH] Resolve: #24682 CSGPolygon - weird end cap (cherry picked from commit 89a9f4621f9848f651b73ab6c7c6321075d0c55c) --- modules/csg/csg_shape.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 775ec67ba64..315ebb44e1d 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -2060,6 +2060,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; }