summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJason <jkirsons@gmail.com>2019-05-17 20:49:24 +0200
committerJason <jkirsons@gmail.com>2019-05-17 20:49:24 +0200
commit89a9f4621f9848f651b73ab6c7c6321075d0c55c (patch)
treeecf5c45eebc3ce3a71c31a79c1a8343fe2e02841 /modules
parentee5ba3e0974caba3e3589d2a53405ef7328dc1b1 (diff)
Resolve: #24682 CSGPolygon - weird end cap
Diffstat (limited to 'modules')
-rw-r--r--modules/csg/csg_shape.cpp3
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;
}