fix imperial units in this error message

This commit is contained in:
Stewart Allen 2021-01-18 14:35:00 -05:00
commit 6cab389146

View file

@ -40,7 +40,8 @@
maxToolDiam = -Infinity, maxToolDiam = -Infinity,
thruHoles, thruHoles,
tabs = settings.widget[widget.id].tab, tabs = settings.widget[widget.id].tab,
unsafe = proc.camExpertFast; unsafe = proc.camExpertFast,
units = settings.controller.units === 'in' ? 25.4 : 1;
if (tabs) { if (tabs) {
// make tab polygons // make tab polygons
@ -85,7 +86,7 @@
} }
if (zMin >= bounds.max.z) { if (zMin >= bounds.max.z) {
throw `invalid z bottom ${zMin.round(3)} >= bounds z max ${zMax.round(3)}`; throw `invalid z bottom ${(zMin/units).round(3)} >= bounds z max ${(zMax/units).round(3)}`;
} }
let mark = Date.now(); let mark = Date.now();