Fixed issue with Godot modifications to polypartition.cpp third-party file
This commit is contained in:
@ -101,7 +101,7 @@ index 3a8a6efa83..8c5409bf24 100644
|
|||||||
pointvisible = true;
|
pointvisible = true;
|
||||||
- for (iter2 = polys.begin(); iter2 != polys.end(); iter2++) {
|
- for (iter2 = polys.begin(); iter2 != polys.end(); iter2++) {
|
||||||
- if (iter2->IsHole()) {
|
- if (iter2->IsHole()) {
|
||||||
+ for (iter2 = polys.front(); iter2; iter2->next()) {
|
+ for (iter2 = polys.front(); iter2; iter2 = iter2->next()) {
|
||||||
+ if (iter2->get().IsHole()) {
|
+ if (iter2->get().IsHole()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
2
thirdparty/misc/polypartition.cpp
vendored
2
thirdparty/misc/polypartition.cpp
vendored
@ -262,7 +262,7 @@ int TPPLPartition::RemoveHoles(TPPLPolyList *inpolys, TPPLPolyList *outpolys) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pointvisible = true;
|
pointvisible = true;
|
||||||
for (iter2 = polys.front(); iter2; iter2->next()) {
|
for (iter2 = polys.front(); iter2; iter2 = iter2->next()) {
|
||||||
if (iter2->get().IsHole()) {
|
if (iter2->get().IsHole()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user