diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index fe364677c..af351bb86 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -2477,8 +2477,6 @@ void CmdSketcherConstrainPointOnObject::applyConstraint(std::vector & // ====================================================================================== -//DEF_STD_CMD_AU(CmdSketcherConstrainDistanceX); - class CmdSketcherConstrainDistanceX : public CmdSketcherConstraint { public: @@ -2717,8 +2715,6 @@ void CmdSketcherConstrainDistanceX::updateAction(int mode) // ====================================================================================== -//DEF_STD_CMD_AU(CmdSketcherConstrainDistanceY); - class CmdSketcherConstrainDistanceY : public CmdSketcherConstraint { public: @@ -3020,7 +3016,8 @@ CmdSketcherConstrainParallel::CmdSketcherConstrainParallel() eType = ForEdit; // TODO: Also needed: ExternalEdges - allowedSelSequences = {{SelEdge, SelEdgeOrAxis}, {SelEdgeOrAxis, SelEdge}}; + allowedSelSequences = {{SelEdge, SelEdgeOrAxis}, {SelEdgeOrAxis, SelEdge}, + {SelEdge, SelExternalEdge}, {SelExternalEdge, SelEdge}}; constraintCursor = cursor_createparallel; } @@ -3110,6 +3107,8 @@ void CmdSketcherConstrainParallel::applyConstraint(std::vector &selSe switch (seqIndex) { case 0: // {SelEdge, SelEdgeOrAxis} case 1: // {SelEdgeOrAxis, SelEdge} + case 2: // {SelEdge, SelExternalEdge} + case 3: // {SelExternalEdge, SelEdge} // create the constraint SketcherGui::ViewProviderSketch* sketchgui = static_cast(getActiveGuiDocument()->getInEdit()); Sketcher::SketchObject* Obj = sketchgui->getSketchObject();