Resolve: #24682 CSGPolygon - weird end cap

(cherry picked from commit 89a9f4621f)
This commit is contained in:
Jason 2019-05-17 20:49:24 +02:00 committed by Rémi Verschelde
parent 909a1cced8
commit 2da174c9b4

View file

@ -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;
}