Sketcher: Sketcher_ConstrainHorizontal before Sketcher_ConstrainVertical in GUI
Changes to TaskSketcherElements.cpp are not required, but were done for consistency. The order in the file follows the GUI.
This commit is contained in:
@@ -4044,8 +4044,8 @@ void ViewProviderSketch::generateContextMenu()
|
||||
menu << "Sketcher_Dimension";
|
||||
if (selectedConics == 0) {
|
||||
menu << "Sketcher_ConstrainHorVer"
|
||||
<< "Sketcher_ConstrainVertical"
|
||||
<< "Sketcher_ConstrainHorizontal";
|
||||
<< "Sketcher_ConstrainHorizontal"
|
||||
<< "Sketcher_ConstrainVertical";
|
||||
|
||||
if (selectedLines > 1) {
|
||||
menu << "Sketcher_ConstrainParallel";
|
||||
@@ -4073,8 +4073,8 @@ void ViewProviderSketch::generateContextMenu()
|
||||
if (selectedConics == 0 && selectedBsplines == 0) {
|
||||
menu << "Sketcher_ConstrainCoincidentUnified"
|
||||
<< "Sketcher_ConstrainHorVer"
|
||||
<< "Sketcher_ConstrainVertical"
|
||||
<< "Sketcher_ConstrainHorizontal";
|
||||
<< "Sketcher_ConstrainHorizontal"
|
||||
<< "Sketcher_ConstrainVertical";
|
||||
if (selectedPoints == 2) {
|
||||
menu << "Sketcher_ConstrainSymmetric";
|
||||
}
|
||||
@@ -4095,8 +4095,8 @@ void ViewProviderSketch::generateContextMenu()
|
||||
if (selectedPoints > 1) {
|
||||
menu << "Sketcher_ConstrainCoincidentUnified"
|
||||
<< "Sketcher_ConstrainHorVer"
|
||||
<< "Sketcher_ConstrainVertical"
|
||||
<< "Sketcher_ConstrainHorizontal";
|
||||
<< "Sketcher_ConstrainHorizontal"
|
||||
<< "Sketcher_ConstrainVertical";
|
||||
}
|
||||
if (selectedPoints == 2) {
|
||||
menu << "Sketcher_ConstrainPerpendicular"
|
||||
@@ -4109,8 +4109,8 @@ void ViewProviderSketch::generateContextMenu()
|
||||
else if (selectedLines >= 1 && selectedPoints >= 1 && !onlyOrigin) {
|
||||
menu << "Sketcher_Dimension"
|
||||
<< "Sketcher_ConstrainHorVer"
|
||||
<< "Sketcher_ConstrainVertical"
|
||||
<< "Sketcher_ConstrainHorizontal";
|
||||
<< "Sketcher_ConstrainHorizontal"
|
||||
<< "Sketcher_ConstrainVertical";
|
||||
}
|
||||
// context menu if only constraints are selected
|
||||
else if (selectedConstraints >= 1) {
|
||||
|
||||
Reference in New Issue
Block a user