Fixed typo introduced with 05e82b1fc5

This commit is contained in:
enricoturri1966 2022-11-03 14:14:35 +01:00
parent a4e4a71617
commit 4f6217a54c

View File

@ -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();