Sketcher: Fix line to arc point distance movement problem
This commit is contained in:
committed by
Chris Hennes
parent
132cad9058
commit
66fceda45e
@@ -1766,7 +1766,7 @@ void ViewProviderSketch::moveConstraint(Sketcher::Constraint* Constr, int constN
|
||||
const Part::Geometry *geo2 = GeoList::getGeometryFromGeoId (geomlist, Constr->Second);
|
||||
|
||||
if (isLineSegment(*geo2)) {
|
||||
if (isCircleOrArc(*geo1)){
|
||||
if (isCircleOrArc(*geo1) && Constr->FirstPos == Sketcher::PointPos::none){
|
||||
std::swap(geo1, geo2); // see below
|
||||
}
|
||||
else {
|
||||
@@ -1818,7 +1818,7 @@ void ViewProviderSketch::moveConstraint(Sketcher::Constraint* Constr, int constN
|
||||
p2 = lineSeg->getEndPoint();
|
||||
}
|
||||
else if (geo->is<Part::GeomArcOfCircle>()) {
|
||||
const Part::GeomArcOfCircle* arc = static_cast<const Part::GeomArcOfCircle*>(geo);
|
||||
auto* arc = static_cast<const Part::GeomArcOfCircle*>(geo);
|
||||
double radius = arc->getRadius();
|
||||
Base::Vector3d center = arc->getCenter();
|
||||
double startangle, endangle;
|
||||
|
||||
Reference in New Issue
Block a user