fix surface / trace selection copy on hover/pop/new op

This commit is contained in:
Stewart Allen 2023-03-15 13:45:53 -04:00
commit 8c32b1ba5a
3 changed files with 9 additions and 3 deletions

View file

@ -7,6 +7,8 @@ Full docs @ https://docs.grid.space/projects/kiri-moto
* more graceful handling of security contexts blocking SharedArrayBuffer
* FDM refactor the 'detect' support feature for auto-placing manual supports
* FDM fix supports in belt mode
* CAM fix surface / trace selection copy on hover/pop/new op
* CAM decrease cutting speed when entire tool is engaged in roughing
* CAM add dogbones support to traces ops
* CAM add scripted contour filtering (to be extended to other ops)
@ -17,10 +19,8 @@ Full docs @ https://docs.grid.space/projects/kiri-moto
* CAM add rough all stock to aid lathe mode
* CAM stock is now always on, whether offset or absolute
* CAM add lathe worker parallelization (2x - 6x speedup)
- add "common" overrides in ops (z top/bottom/thru, direction)
* CAM fix pocket/trace selection with flip op
- fix lathe yellow path in normal (not dark) mode
- fix pocket/trace selection with flip op
- fix supports in belt mode
# Release 3.8 (2023-01-21)

View file

@ -343,6 +343,8 @@ CAM.init = function(kiri, api) {
};
func.opAddPocket = () => {
func.traceDone();
func.surfaceDone();
let rec = popOp.pocket.new();
rec.surfaces = { /* widget.id: [ faces... ] */ };
func.opAdd(rec);
@ -527,6 +529,9 @@ CAM.init = function(kiri, api) {
popped = false;
};
function onEnter(ev) {
if ((surfaceOn || traceOn) && poppedRec != rec) {
return;
}
if (popped && poppedRec != rec) {
func.surfaceDone();
func.traceDone();

View file

@ -400,6 +400,7 @@ function prepEach(widget, settings, print, firstPoint, update) {
if (synthPlunge && threshold && modifier && deltaXY > tolerance) {
// use modifier to speed up long XY move plunge rates
rate = Math.round(plungeRate + ((feedRate - plungeRate) * modifier));
cut = 1;
} else {
rate = Math.min(feedRate, plungeRate);
}