From 5ae432824fad29f3d4b731a48a2859bd9fe5896f Mon Sep 17 00:00:00 2001 From: Glenn Waldron Date: Tue, 4 Feb 2025 12:33:51 -0500 Subject: [PATCH] Geometry:roll back the removeDuplicates change --- src/osgEarth/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgEarth/Geometry.cpp b/src/osgEarth/Geometry.cpp index d9343b0536..4d33c17c57 100644 --- a/src/osgEarth/Geometry.cpp +++ b/src/osgEarth/Geometry.cpp @@ -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); }