fix(grip): drop the polar/ortho tracking guide when a grip edit ends

Fixes #1456

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-09-28 17:59:07 +03:00
1 parent 19c434fc5d
commit bb9e447c64
1 file changed
+4 -2
+4 -2
View File
@@ -495,11 +495,13 @@ impl OpenCADStudio {
self.notify_plugins_document_changed();
// OTRACK acquires tracking points only while a command or grip drag is
// running; drop them once neither is active so the temporary tracking
// points / vectors disappear when the command ends (issue #64).
// points / vectors disappear when the command ends (issue #64). A grip
// drag's polar/ortho guide sets the vector with no tracking point, so
// it is dropped too. (#1456)
let i = self.active_tab;
if self.tabs[i].active_cmd.is_none()
&& self.tabs[i].active_grip.is_none()
&& !self.snapper.tracking_points.is_empty()
&& (!self.snapper.tracking_points.is_empty() || self.otrack_active.is_some())
{
self.snapper.clear_tracking();
self.otrack_active = None;