forked from 1b-agent/opencadstudio-upstream
feat(cursor): a command asking for objects shows the pickbox alone
Idle and object selection drew the same cursor, crosshair arms with the pickbox, so the cursor did not tell a pick from a free move. While a command gathers a selection or waits for an object pick the arms now go and the pickbox stays: idle keeps arms and box, point input arms and dot. Fixes #1661 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
340104bf1b
commit
1e4c10bc6b
1 file changed
+8
-5
+8
-5
@@ -927,11 +927,14 @@ bg={bg_ms:.1}ms n={view_count}"
|
||||
snap_angle_deg: self.snap_angle_deg,
|
||||
pick_pending: self.pending_pick_label().is_some(),
|
||||
// An infinite-line preview runs along the arms; drop them
|
||||
// so the preview stays visible (#1437).
|
||||
hide_arms: tab
|
||||
.active_cmd
|
||||
.as_ref()
|
||||
.is_some_and(|c| matches!(c.name(), "XLINE" | "RAY")),
|
||||
// so the preview stays visible (#1437). A command asking
|
||||
// for objects shows the pickbox alone, so picking reads
|
||||
// apart from both idle and point input (#1661).
|
||||
hide_arms: tab.active_cmd.as_ref().is_some_and(|c| {
|
||||
matches!(c.name(), "XLINE" | "RAY")
|
||||
|| c.needs_entity_pick()
|
||||
|| c.is_selection_gathering()
|
||||
}),
|
||||
snap_color: self.snap_marker_color,
|
||||
},
|
||||
crate::ui::overlay::SelectionVisualOptions {
|
||||
|
||||
Reference in new issue
Block a user