fix update/render bug with align top toggle
This commit is contained in:
parent
fa8eb4fd00
commit
7c56383b82
5 changed files with 8 additions and 9 deletions
|
|
@ -1147,7 +1147,7 @@ var gs_kiri_cam = exports;
|
|||
newOutput.push(layerOut);
|
||||
layerOut = [];
|
||||
}
|
||||
|
||||
// console.log({index, zadd, zmax, bz:bounds.max.z});
|
||||
/**
|
||||
* @param {Point} point
|
||||
* @param {number} emit (0=move, !0=filament emit/laser on/cut mode)
|
||||
|
|
|
|||
|
|
@ -445,7 +445,8 @@ var gs_kiri_init = exports;
|
|||
current.controller.alignTop = UI.alignTop.checked;
|
||||
current.controller.reverseZoom = UI.reverseZoom.checked;
|
||||
SPACE.view.setZoom(current.controller.reverseZoom, current.controller.zoomSpeed);
|
||||
platform.update_origin();
|
||||
platform.layout();
|
||||
platform.update_stock();
|
||||
API.conf.save();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1206,20 +1206,16 @@ self.kiri.license = exports.LICENSE;
|
|||
camStock.position.z = csz / 2;
|
||||
camStock.material.visible = settings.mode === 'CAM';
|
||||
camTopZ = csz;
|
||||
platform.update_top_z();
|
||||
SPACE.update();
|
||||
} else if (camStock) {
|
||||
settings.stock = { };
|
||||
UI.stock.style.display = 'none';
|
||||
SPACE.platform.remove(camStock);
|
||||
SPACE.update();
|
||||
camStock = null;
|
||||
camTopZ = topZ;
|
||||
platform.update_top_z();
|
||||
} else if (settings.controller.alignTop) {
|
||||
platform.update_top_z();
|
||||
}
|
||||
platform.update_top_z();
|
||||
platform.update_origin();
|
||||
SPACE.update();
|
||||
}
|
||||
|
||||
/** ******************************************************************
|
||||
|
|
|
|||
Loading…
Reference in a new issue