Browse Source

Resolve: #24682 CSGPolygon - weird end cap

(cherry picked from commit 89a9f4621f9848f651b73ab6c7c6321075d0c55c)
Jason 6 years ago
parent
commit
2da174c9b4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/csg/csg_shape.cpp

+ 3 - 0
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;
 					}