Merge pull request #28965 from jkirsons/csgpolygon-weird-end-cap

Resolve: #24682 CSGPolygon - weird end cap
This commit is contained in:
Rémi Verschelde 2019-05-20 11:25:53 +02:00 committed by GitHub
commit 8b0ea33777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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