From 89a9f4621f9848f651b73ab6c7c6321075d0c55c 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 --- 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 e70773d9147..1d27b9b6f44 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; }