Skip to content

Commit

Permalink
Merge pull request #58376 from novaplusplus/master
Browse files Browse the repository at this point in the history
Fixed issue with godot's changes to polypartition third-party code
  • Loading branch information
akien-mga authored Feb 21, 2022
2 parents 7e9047f + 36ae916 commit 4e5cc1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thirdparty/misc/patches/polypartition-godot-types.patch
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ index 3a8a6efa83..8c5409bf24 100644
pointvisible = true;
- for (iter2 = polys.begin(); iter2 != polys.end(); iter2++) {
- if (iter2->IsHole()) {
+ for (iter2 = polys.front(); iter2; iter2->next()) {
+ for (iter2 = polys.front(); iter2; iter2 = iter2->next()) {
+ if (iter2->get().IsHole()) {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/misc/polypartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ int TPPLPartition::RemoveHoles(TPPLPolyList *inpolys, TPPLPolyList *outpolys) {
}
}
pointvisible = true;
for (iter2 = polys.front(); iter2; iter2->next()) {
for (iter2 = polys.front(); iter2; iter2 = iter2->next()) {
if (iter2->get().IsHole()) {
continue;
}
Expand Down

0 comments on commit 4e5cc1f

Please sign in to comment.