This commit is contained in:
bflatastic
2026-10-20 01:48:35 +07:00
parent 5bf159d5d1
commit bb32072be9
2 changed files with 3 additions and 12 deletions
+2 -8
View File
@@ -599,10 +599,7 @@ impl Tool for CurvatureTool {
tail.to_bezpath_into(&mut bp);
o.push(Overlay::Path { path: bp, color: FEEDBACK, width: 1.0, dashed: false });
if cx.measurement_labels && e.p.distance(h) > 1e-9 {
o.push(Overlay::Measure {
p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)),
text: cx.segment_measure_label(e.p, h),
});
o.push(Overlay::Measure { p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)), text: cx.segment_measure_label(e.p, h) });
}
}
return o;
@@ -619,10 +616,7 @@ impl Tool for CurvatureTool {
&& cx.measurement_labels
&& from.distance(h) > 1e-9
{
o.push(Overlay::Measure {
p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)),
text: cx.segment_measure_label(*from, h),
});
o.push(Overlay::Measure { p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)), text: cx.segment_measure_label(*from, h) });
}
}
for (i, (p, _)) in self.pts.iter().enumerate() {
+1 -4
View File
@@ -397,10 +397,7 @@ impl Tool for PenTool {
}
o.push(Overlay::Path { path: bp, color: cx.doc.layer_color(id), width: 1.0, dashed: false });
if cx.measurement_labels && last.distance(h) > 1e-9 {
o.push(Overlay::Measure {
p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)),
text: cx.segment_measure_label(last, h),
});
o.push(Overlay::Measure { p: h + Vec2::new(cx.tol(12.0), cx.tol(12.0)), text: cx.segment_measure_label(last, h) });
}
}
o.extend_from_slice(self.snap.guides());