Browse Source

Resolve: #24682 CSGPolygon - weird end cap

Jason 6 years ago
parent
commit
89a9f4621f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/csg/csg_shape.cpp

+ 3 - 0
modules/csg/csg_shape.cpp

@@ -2082,6 +2082,9 @@ CSGBrush *CSGPolygon::_build_brush() {
 				for (int i = 0; i <= splits; i++) {
 				for (int i = 0; i <= splits; i++) {
 
 
 					float ofs = i * path_interval;
 					float ofs = i * path_interval;
+					if (ofs > bl) {
+						ofs = bl;
+					}
 					if (i == splits && path_joined) {
 					if (i == splits && path_joined) {
 						ofs = 0.0;
 						ofs = 0.0;
 					}
 					}