Sketcher: Extend distance constraint to arcs
This commit is contained in:
committed by
abdullahtahiriyo
parent
838802e28d
commit
7343bf940b
@@ -445,9 +445,12 @@ int SketchObject::setDatum(int ConstrId, double Datum)
|
||||
if (!vals[ConstrId]->isDimensional() && type != Tangent && type != Perpendicular)
|
||||
return -1;
|
||||
|
||||
if ((type == Distance || type == Radius || type == Diameter || type == Weight) && Datum <= 0)
|
||||
if ((type == Radius || type == Diameter || type == Weight) && Datum <= 0)
|
||||
return (Datum == 0) ? -5 : -4;
|
||||
|
||||
if (type == Distance && Datum == 0)
|
||||
return -5;
|
||||
|
||||
// copy the list
|
||||
std::vector<Constraint*> newVals(vals);
|
||||
double oldDatum = newVals[ConstrId]->getValue();
|
||||
|
||||
Reference in New Issue
Block a user