From 1a71ca745a232b56a49b0d82747cd720bd969ef3 Mon Sep 17 00:00:00 2001 From: phkahler <14852918+phkahler@users.noreply.github.com> Date: Sat, 25 Nov 2023 15:14:30 -0500 Subject: [PATCH] Dimesions on arcs defaut to radius instead of diameter --- src/constraint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/constraint.cpp b/src/constraint.cpp index ee73457..64e9b33 100644 --- a/src/constraint.cpp +++ b/src/constraint.cpp @@ -236,6 +236,10 @@ void Constraint::MenuConstrain(Command id) { } else if(gs.circlesOrArcs == 1 && gs.n == 1) { c.type = Type::DIAMETER; c.entityA = gs.entity[0]; + Entity* arc = SK.GetEntity(gs.entity[0]); + if (arc->type == EntityBase::Type::ARC_OF_CIRCLE) { + c.other = true; + } } else { Error(_("Bad selection for distance / diameter constraint. This " "constraint can apply to:\n\n"