From 5cc33d6965395f8a6c8aeac2cca27f3624ac6b3b Mon Sep 17 00:00:00 2001 From: Frank Becker Date: Thu, 22 Jan 2026 20:56:04 -0800 Subject: [PATCH] Remove arc_tolerance scaling and the comment related to that. clipper2 1.5.3 does the scaling internally. --- core/math/geometry_2d.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/math/geometry_2d.cpp b/core/math/geometry_2d.cpp index f187ad888ee..f6d0ed74ee6 100644 --- a/core/math/geometry_2d.cpp +++ b/core/math/geometry_2d.cpp @@ -38,7 +38,6 @@ GODOT_GCC_WARNING_POP #include "thirdparty/misc/stb_rect_pack.h" const int clipper_precision = 5; // Based on CMP_EPSILON. -const double clipper_scale = Math::pow(10.0, clipper_precision); void Geometry2D::merge_many_polygons(const Vector> &p_polygons, Vector> &r_out_polygons, Vector> &r_out_holes) { using namespace Clipper2Lib; @@ -351,10 +350,7 @@ Vector> Geometry2D::_polypath_offset(const Vector &p_poly } // Inflate/deflate. - PathsD paths = InflatePaths({ polypath }, p_delta, jt, et, 2.0, clipper_precision, 0.25 * clipper_scale); - // Here the points are scaled up internally and - // the arc_tolerance is scaled accordingly - // to attain the desired precision. + PathsD paths = InflatePaths({ polypath }, p_delta, jt, et, 2.0, clipper_precision, 0.25); Vector> polypaths; polypaths.resize(paths.size());