Skip to content

Commit

Permalink
Geometry:roll back the removeDuplicates change
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Feb 4, 2025
1 parent 88e5b0e commit 5ae4328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgEarth/Geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void Geometry::removeDuplicates()
osg::Vec3d v = front();
for (Geometry::iterator itr = begin(); itr != end(); )
{
if (itr != begin() && equivalent(v.x(), itr->x()) && equivalent(v.y(), itr->y()))
if (itr != begin() && v == *itr)
{
itr = erase(itr);
}
Expand Down

0 comments on commit 5ae4328

Please sign in to comment.