diff --git a/core/2d/CCAutoPolygon.cpp b/core/2d/CCAutoPolygon.cpp index c5cbc5a651..6fe61f1dca 100644 --- a/core/2d/CCAutoPolygon.cpp +++ b/core/2d/CCAutoPolygon.cpp @@ -524,12 +524,6 @@ std::vector AutoPolygon::expand(const std::vector& points, const ax: result.emplace_back(Clipper2Lib::Point64(pt.x * PRECISION, pt.y * PRECISION)); } - if (!Clipper2Lib::IsPositive(result)) - { - log("AUTOPOLYGON: cannot expand points for %s detect a hole!, e: %f", _filename.c_str(), epsilon); - return std::vector(); - } - Clipper2Lib::ClipperOffset co; co.AddPath(result, Clipper2Lib::JoinType::Miter, Clipper2Lib::EndType::Polygon); co.Execute(epsilon * PRECISION, solution);