fix o=tools hotkey. add more animation resolutions. change move clear distance based on tool type

This commit is contained in:
Stewart Allen 2020-12-08 23:27:34 -05:00
commit 2cb691d3d8
4 changed files with 10 additions and 3 deletions

View file

@ -319,6 +319,7 @@ self.kiri.loader.push(function() {
function checkStash(send) {
if (!skipMode && skipStash.length) {
// merge & compress stash stack
skipStash.forEach(mesh_update => {
send.data({ id: 0, mesh_update }, [ mesh_update.buffer ]);
});

View file

@ -85,6 +85,7 @@
printPoint,
isNewMode,
tool,
toolType,
toolDiam,
toolDiamMove,
feedRate,
@ -118,8 +119,9 @@
function setTool(toolID, feed, plunge) {
if (toolID !== lastTool) {
tool = new CAM.Tool(settings, toolID);
toolType = tool.getType();
toolDiam = tool.fluteDiameter();
toolDiamMove = toolDiam; // TODO validate w/ multiple models
toolDiamMove = toolType === 'endmill' ? toolDiam : tolerance;
lastTool = toolID;
}
feedRate = feed;