diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-20 11:25:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 11:25:53 +0200 |
commit | 8b0ea337771a2ec04f8c731601c6a0518187b328 (patch) | |
tree | 8bfd515706519e48f49062e0b86ce3fbffbf062e /modules/csg | |
parent | fead547ba537e08b94d7a4c74714354ebd61d0cc (diff) | |
parent | 89a9f4621f9848f651b73ab6c7c6321075d0c55c (diff) |
Merge pull request #28965 from jkirsons/csgpolygon-weird-end-cap
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; } |