Skip to content

Commit

Permalink
Merge pull request godotengine#28965 from jkirsons/csgpolygon-weird-e…
Browse files Browse the repository at this point in the history
…nd-cap

Resolve: godotengine#24682 CSGPolygon - weird end cap
  • Loading branch information
akien-mga authored May 20, 2019
2 parents fead547 + 89a9f46 commit 8b0ea33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/csg/csg_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8b0ea33

Please sign in to comment.