Sketcher: BSpline - Equality not supported user indication
This commit is contained in:
parent
2eec558ce7
commit
6b5622a661
|
@ -3203,6 +3203,14 @@ void CmdSketcherConstrainEqual::activated(int iMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
const Part::Geometry *geo = Obj->getGeometry(GeoId);
|
const Part::Geometry *geo = Obj->getGeometry(GeoId);
|
||||||
|
|
||||||
|
if(geo->getTypeId() == Part::GeomBSplineCurve::getClassTypeId()) {
|
||||||
|
// unsupported as they are generally hereogeneus shapes
|
||||||
|
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||||
|
QObject::tr("Equality for BSpline edge currently unsupported."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (geo->getTypeId() != Part::GeomLineSegment::getClassTypeId())
|
if (geo->getTypeId() != Part::GeomLineSegment::getClassTypeId())
|
||||||
lineSel = true;
|
lineSel = true;
|
||||||
else if (geo->getTypeId() != Part::GeomArcOfCircle::getClassTypeId())
|
else if (geo->getTypeId() != Part::GeomArcOfCircle::getClassTypeId())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user