From 2d672216549c8b69eaac7419bb5c4148ff2632be Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Thu, 16 Sep 2021 12:32:25 +0200 Subject: [PATCH] Fix svg precission --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index dff9d2f02..38d942f6e 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -769,7 +769,7 @@ void NSVGUtils::flatten_cubic_bez(Polygon &polygon, float d23 = d2 + d3; if ((d23 * d23) < tessTol * (pd.x() * pd.x() + pd.y() * pd.y())) { - polygon.points.emplace_back(p4.cast()); + polygon.points.emplace_back(p4.x(), p4.y()); return; }