Skip to content

Dynamic Input: the CIRCLE radius prompt shows one distance field, not X/Y - #1137

Merged
echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/circle-radius-dyn-input
Oct 19, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/circle-radius-dyn-input

Conversation

@marcoarnulfo

Copy link
Copy Markdown
Contributor

Fixes #1135.

At "Specify radius of circle" Dynamic Input showed the pointer boxes, because nothing told it the prompt wants a distance: X/Y with DYNPIFORMAT=1 (as in the screenshot), distance and angle otherwise. A value Tab-locked in X then became a point, not a radius. Prompts now say so with Prompt::distance(), and Dynamic Input shows one length field from the base point instead, the dimensional input @vangel76 built for grips in #527, with the prompt and its down-arrow options (Diameter) kept beside the cursor. Enter sends the typed value (or the one Tab locked) to the command as a number, so the commands keep their own checks: a radius of zero is still refused, a negative PLINE arc radius still gives the major arc.

Marked as distance prompts: CIRCLE radius and diameter, CIRCLE Ttr radius, POLYGON radius, and PLINE arc radius, chord length and line length. I left the isometric circle radius out (it's measured on the isoplane, not straight from the centre) and the ELLIPSE other-axis distance too; happy to add them, or others, if you'd like.

I didn't touch docs/ui-parity.md, since #819 is re-auditing it.

Validation:

  • grip_dyn::tests::circle_radius_shows_one_distance_field_and_typed_value_is_the_radius: fails on main (the X/Y boxes at the radius prompt), passes here. It checks the centre prompt still shows X/Y, the radius prompt shows one field with the live radius, and 25 Enter draws a circle of radius 25, with DYNPIFORMAT 1 and 0
  • cargo test -p cadcraft-ui-egui --lib -- grip_dyn dynamic dyninput cmdline
  • cargo clippy -p cadcraft-engine -p cadcraft-ui-egui --all-targets -- -D warnings, cargo fmt --all -- --check
  • (macOS, Apple silicon)

@echelon

echelon commented Oct 19, 2026

Copy link
Copy Markdown
Member

Thank you @marcoarnulfo for this contribution — it's landed on main! 🎉 If you haven't already, please come join us on Discord: https://discord.gg/artcraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contraddictory labels for circle creation

2 participants