Merge pull request #20574 from luzpaz/typo-source-draft

Draft: fix source typo in draftobjects/patharray.py
This commit is contained in:
Roy-043
2025-04-04 14:42:30 +02:00
committed by GitHub

View File

@@ -683,7 +683,7 @@ def placements_on_path(shapeRotation, pathwire, count, xlate, align,
fullSpacingPattern = [spacingPattern[i % len(spacingPattern)] for i in range(segCount)]
sumWeights = sum(fullSpacingPattern)
distPerWeightUnit = totalDist / sumWeights
steps = [distPerWeightUnit * weigth for weigth in fullSpacingPattern]
steps = [distPerWeightUnit * weight for weight in fullSpacingPattern]
else:
# Available length will be evenly divided (the original spacing method):