Sketcher: External edges in constraint modes (Equal)

This commit is contained in:
AjinkyaDahale 2017-02-22 05:57:30 +05:30 committed by wmayer
parent ff74ba32a8
commit 167b28d200

View File

@ -5464,7 +5464,8 @@ CmdSketcherConstrainEqual::CmdSketcherConstrainEqual()
sAccel = "E"; sAccel = "E";
eType = ForEdit; eType = ForEdit;
allowedSelSequences = {{SelEdge, SelEdge}}; // Only option for equal constraint allowedSelSequences = {{SelEdge, SelEdge}, {SelEdge, SelExternalEdge},
{SelExternalEdge, SelEdge}}; // Only option for equal constraint
constraintCursor = cursor_genericconstraint; constraintCursor = cursor_genericconstraint;
} }
@ -5588,6 +5589,8 @@ void CmdSketcherConstrainEqual::applyConstraint(std::vector<SelIdPair> &selSeq,
switch (seqIndex) { switch (seqIndex) {
case 0: // {SelEdge, SelEdge} case 0: // {SelEdge, SelEdge}
case 1: // {SelEdge, SelExternalEdge}
case 2: // {SelExternalEdge, SelEdge}
{ {
GeoId1 = selSeq.at(0).GeoId; GeoId2 = selSeq.at(1).GeoId; GeoId1 = selSeq.at(0).GeoId; GeoId2 = selSeq.at(1).GeoId;