From 6b5622a6611dceb19f853d6f59e8bfe6bd06d8d7 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 15 Jan 2017 01:40:04 +0100 Subject: [PATCH] Sketcher: BSpline - Equality not supported user indication --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 3614b189c..2f14750af 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -3201,8 +3201,16 @@ void CmdSketcherConstrainEqual::activated(int iMsg) else hasAlreadyExternal = true; } - + 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())