From 4f6217a54c3c7cdb433b3efdb5bb7b1c540e2aa5 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 3 Nov 2022 14:14:35 +0100 Subject: [PATCH] Fixed typo introduced with 05e82b1fc569f6fe02d29784a87aa7611164d349 --- src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp index d296bb3c4..4255eb7b9 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp @@ -905,7 +905,7 @@ void GLGizmoMeasure::render_dimensioning() return; auto point_point = [this, shader](const Vec3d& v1, const Vec3d& v2, float distance) { - if ((v2 - v2).squaredNorm() < 0.000001) + if ((v2 - v1).squaredNorm() < 0.000001 || distance < 0.001f) return; const Camera& camera = wxGetApp().plater()->get_camera();