Sketcher: BSpline - Equality not supported user indication

This commit is contained in:
Abdullah Tahiri 2017-01-15 01:40:04 +01:00
parent 2eec558ce7
commit 6b5622a661

View File

@ -3203,6 +3203,14 @@ void CmdSketcherConstrainEqual::activated(int iMsg)
}
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())
lineSel = true;
else if (geo->getTypeId() != Part::GeomArcOfCircle::getClassTypeId())