fix o=tools hotkey. add more animation resolutions. change move clear distance based on tool type
This commit is contained in:
parent
af1ab0e572
commit
2cb691d3d8
4 changed files with 10 additions and 3 deletions
|
|
@ -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 ]);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue