fix image inversion, slice cancelling
This commit is contained in:
parent
bd9ad20001
commit
ee9d363636
2 changed files with 4 additions and 4 deletions
|
|
@ -210,9 +210,9 @@ let gs_kiri_sla = exports;
|
||||||
function polyout(poly, ctx) {
|
function polyout(poly, ctx) {
|
||||||
poly.forEachPoint((p,i) => {
|
poly.forEachPoint((p,i) => {
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
ctx.moveTo(p.y * scaleY + height2, p.x * scaleX + width2);
|
ctx.moveTo(height - (p.y * scaleY + height2), p.x * scaleX + width2);
|
||||||
} else {
|
} else {
|
||||||
ctx.lineTo(p.y * scaleY + height2, p.x * scaleX + width2);
|
ctx.lineTo(height - (p.y * scaleY + height2), p.x * scaleX + width2);
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
ctx.closePath();
|
ctx.closePath();
|
||||||
|
|
|
||||||
|
|
@ -783,12 +783,12 @@ self.kiri.copyright = exports.COPYRIGHT;
|
||||||
}
|
}
|
||||||
// on the last exit, update ui and call the callback
|
// on the last exit, update ui and call the callback
|
||||||
if (--countdown === 0 || error || errored) {
|
if (--countdown === 0 || error || errored) {
|
||||||
|
setProgress(0);
|
||||||
if (skipSliceView) {
|
if (skipSliceView) {
|
||||||
if (!error) {
|
if (!(error || errored)) {
|
||||||
preparePrint(callback);
|
preparePrint(callback);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setProgress(0);
|
|
||||||
showSlices(preserveLayer);
|
showSlices(preserveLayer);
|
||||||
setOpacity(settings.mode === 'CAM' ? color.cam_sliced_opacity : color.sliced_opacity);
|
setOpacity(settings.mode === 'CAM' ? color.cam_sliced_opacity : color.sliced_opacity);
|
||||||
if (callback && typeof callback === 'function') {
|
if (callback && typeof callback === 'function') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue