Sketcher.Scale: Add case for distance of a single curve
This commit is contained in:
@@ -488,6 +488,12 @@ private:
|
||||
newConstr->Second = secondIndex;
|
||||
newConstr->setValue(newConstr->getValue() * scaleFactor);
|
||||
}
|
||||
else if ((cstr->Type == Distance || cstr->Type == DistanceX
|
||||
|| cstr->Type == DistanceY)
|
||||
&& firstIndex != GeoEnum::GeoUndef && cstr->Second == GeoEnum::GeoUndef) {
|
||||
newConstr->First = firstIndex;
|
||||
newConstr->setValue(newConstr->getValue() * scaleFactor);
|
||||
}
|
||||
else if ((cstr->Type == Block || cstr->Type == Weight)
|
||||
&& firstIndex != GeoEnum::GeoUndef) {
|
||||
newConstr->First = firstIndex;
|
||||
|
||||
@@ -426,7 +426,6 @@ void EditDatumDialog::performAutoScale(double newDatum)
|
||||
// might change index
|
||||
ConstrNbr = sketch->getSingleScaleDefiningConstraint();
|
||||
|
||||
|
||||
sketch->setLabelDistance(ConstrNbr, initLabelDistance * scaleFactor);
|
||||
|
||||
// Label position or radii and diameters represent an angle, so
|
||||
|
||||
Reference in New Issue
Block a user