Shapes: the Curvature Circle tool reaches its circles again after Deselect

The tool passed over the circles it drew until the undo history moved, the
tool changed or another document became active. Deselect and a pick in the
Layers panel change only the selection, so the drawn circles stayed out of
reach. The tool now forgets them once the selection holds none of them,
after a command run from outside the tool and at the next pointer event.

docs/mcp.md and the tool's module comment name every case that makes the
circles reachable again. The engine's Undo test checks which path the click
hit, and a comment on the set in candidate_paths says the loop skips ids
that are already listed.
This commit is contained in:
dotCooCoo
2026-11-20 21:54:15 -08:00
parent 063f550802
commit 133a5a4759
6 changed files with 88 additions and 7 deletions
+4 -2
View File
@@ -7261,8 +7261,10 @@ it touches and, with Measurement Labels on, its radius by the pointer, followed
radius. A click draws the circle, and a press dragged 2 screen points or more, or canceled with Escape, draws nothing;
Shift held at the press puts the circle on the other side of the path. On a straight segment, at a cusp, at a corner
anchor, or where the circle would reach past the canvas, the pointer shows "Straight segment", "Cusp", "Corner" or
"Circle too large", and a click draws nothing. The pointer passes over the circles the tool drew until another tool
is chosen or an edit, Undo or Redo is made outside the tool.
"Circle too large", and a click draws nothing. The pointer passes over the circles the tool drew until Deselect or a
selection made outside the tool leaves none of them selected, another tool is chosen, another document becomes
active, or an edit, Undo or Redo is made outside the tool. Selecting one of them again does not put it back out of
reach.
```json
{"name":"run_command","arguments":{"command":"shape.curvatureCircle","params":{"id":12,"segment":0,"t":0.5}}}