diff --git a/core/math/geometry_2d.cpp b/core/math/geometry_2d.cpp index f187ad888eed..f6d0ed74ee6f 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());