forked from 1b-agent/opencadstudio-upstream
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:
1 parent
19c434fc5d
commit
bb9e447c64
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user