fix cam origin top. set slice complete mark before firing event

This commit is contained in:
Stewart Allen 2020-11-17 13:45:46 -05:00
commit 75b9a6ac4c
5 changed files with 11 additions and 11 deletions

View file

@ -1,7 +1,8 @@
# Kiri:Moto todo
## 2.3 remaining
* cnc path routing collisions with two or more parts
* deprecate cam device origin settings
* gcode render broken when layer hints disabled
* cap path ends
* onshape mouse mapping option

View file

@ -684,9 +684,6 @@
}
}
if (mode === 'CAM') {
proc.camOriginTop = dev.outputOriginTop;
}
// disable editing for non-local devices
[
UI.deviceName,
@ -698,7 +695,6 @@
UI.maxHeight,
UI.extrudeAbs,
UI.deviceOrigin,
UI.deviceOriginTop,
UI.deviceRound,
UI.gcodeFan,
UI.gcodeTrack,
@ -1364,8 +1360,7 @@
bedDepth: UC.newInput(LANG.dv_bedd_s, {title:LANG.dv_bedd_l, convert:UC.toFloat, size:6, units:true}),
maxHeight: UC.newInput(LANG.dv_bedh_s, {title:LANG.dv_bedh_l, convert:UC.toFloat, size:6, modes:FDM_SLA}),
spindleMax: UC.newInput(LANG.dv_spmx_s, {title:LANG.dv_spmx_l, convert:UC.toInt, size: 6, modes:CAM}),
deviceOrigin: UC.newBoolean(LANG.dv_orgc_s, onBooleanClick, {title:LANG.dv_orgc_l, modes:GCODE}),
deviceOriginTop: UC.newBoolean(LANG.dv_orgt_s, onBooleanClick, {title:LANG.dv_orgt_l, modes:CAM}),
deviceOrigin: UC.newBoolean(LANG.dv_orgc_s, onBooleanClick, {title:LANG.dv_orgc_l, modes:FDM_LASER_SLA}),
deviceRound: UC.newBoolean(LANG.dv_bedc_s, onBooleanClick, {title:LANG.dv_bedc_l, modes:FDM}),
extruder: UC.newGroup(LANG.dv_gr_ext, $('device'), {group:"dext", inline:true, modes:FDM}),

View file

@ -750,13 +750,13 @@
widget.setColor(color.deselected);
// on the last exit, update ui and call the callback
if (--countdown === 0 || error || errored) {
// mark slicing complete for prep/preview
complete.slice = true;
API.show.progress(0);
SPACE.scene.active();
API.event.emit('slice.end', getMode());
// print stats
DBUG.log(segtimes);
// mark slicing complete for prep/preview
complete.slice = true;
if (callback && typeof callback === 'function') {
callback();
}

View file

@ -353,7 +353,7 @@
canvas.mesh.position.set(0, - h - labelSize / 2 - 5, zp);
rulersView.add(canvas.mesh);
if (axesOn) {
if (axesOn && false) {
canvas.ctx.font = (labelSize * 0.75) + 'px sans-serif';
canvas.ctx.fillText('X', rulerXFirst, labelSize * (1/8));
canvas.ctx.font = labelSize + 'px sans-serif';
@ -372,7 +372,7 @@
canvas.mesh.position.set(-w - labelSize * 2 - 5, 0, zp);
rulersView.add(canvas.mesh);
if (axesOn) {
if (axesOn && false) {
canvas.ctx.font = (labelSize * 0.75) + 'px sans-serif';
canvas.ctx.fillText('Y', labelSize * 3.5, y);
canvas.ctx.font = labelSize + 'px sans-serif';

View file

@ -728,6 +728,10 @@ th, tr, td, label {
height: 450px;
transform: translateX(-1px);
}
#help-tab-support a:hover {
background-color: #aee;
border-radius: 5px;
}
.help-tab {
flex-grow: 1;
display: none;