[TD] Variable line stretching distance

This commit is contained in:
edi271
2022-01-19 09:54:01 +01:00
committed by WandererFan
parent 1a8e88eeec
commit 6f1924f89a
4 changed files with 76 additions and 45 deletions

View File

@@ -1456,7 +1456,7 @@ void execExtendShortenLine(Gui::Command* cmd, bool extend) {
}
double scale = objFeat->getScale();
Base::Vector3d direction = (P1 - P0).Normalize();
Base::Vector3d delta = direction * 2.0;
Base::Vector3d delta = direction * activeDimAttributes.getLineStretch();
Base::Vector3d startPt, endPt;
if (extend) {
startPt = P0 - delta;