hide (unused) preview in SLA. allow base SLA support to grow to raft edge

This commit is contained in:
Stewart Allen 2020-04-26 09:53:22 -04:00
commit d1060ca457
3 changed files with 7 additions and 3 deletions

View file

@ -443,7 +443,7 @@ let gs_kiri_sla = exports;
} }
} else if (!track.max || low) { } else if (!track.max || low) {
size += inc; size += inc;
if (low) max *= 2; if (low) max += (process.slaSupportGap * process.slaSlice * 2);
} }
if (size < track.min) { if (size < track.min) {

View file

@ -314,7 +314,10 @@ var gs_kiri_init = exports;
API.function.slice(); API.function.slice();
break; break;
case cca('p'): // prepare print case cca('p'): // prepare print
API.function.print(); if (API.mode.get() !== 'SLA') {
// hidden in SLA mode
API.function.print();
}
break; break;
case cca('P'): // position widget case cca('P'): // position widget
positionSelection(); positionSelection();

View file

@ -176,7 +176,7 @@ self.kiri.copyright = exports.COPYRIGHT;
SETUP SETUP
}, },
var: { var: {
layer_at: 0, layer_at: Infinity,
layer_max: 0, layer_max: 0,
layer_range: 0 layer_range: 0
}, },
@ -1900,6 +1900,7 @@ self.kiri.copyright = exports.COPYRIGHT;
UI.mode.style.display = lock ? 'none' : ''; UI.mode.style.display = lock ? 'none' : '';
UI.modeTable.style.display = lock ? 'none' : ''; UI.modeTable.style.display = lock ? 'none' : '';
UI.modelOpacity.style.display = MODE === MODES.SLA ? 'none' : ''; UI.modelOpacity.style.display = MODE === MODES.SLA ? 'none' : '';
UI.modePreview.style.display = MODE === MODES.SLA ? 'none' : '';
if (camStock) { if (camStock) {
camStock.material.visible = settings.mode === 'CAM'; camStock.material.visible = settings.mode === 'CAM';
} }