Sketcher.Scale: Add case for distance of a single curve

This commit is contained in:
theo-vt
2025-09-21 22:42:04 -04:00
committed by Chris Hennes
parent c3348bc823
commit a41159a043
2 changed files with 6 additions and 1 deletions

View File

@@ -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;

View File

@@ -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