Dimesions on arcs defaut to radius instead of diameter

pull/1442/head
phkahler 2023-11-25 15:14:30 -05:00 committed by Paul Kahler
parent 486e43a450
commit 1a71ca745a
1 changed files with 4 additions and 0 deletions

View File

@ -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"