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
|
|
@ -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