From 125852c028bc573737aa53c124ce97c8e447d51d Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Sun, 17 Sep 2023 18:19:47 +0200 Subject: [PATCH] Arch: Fix Arch_Fence section placement The code relied on the old implementation of Draft patharray where the calculated placements were not returned in sequence. Forum topic: https://forum.freecad.org/viewtopic.php?t=81246 --- src/Mod/Arch/ArchFence.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Mod/Arch/ArchFence.py b/src/Mod/Arch/ArchFence.py index 94b0fd045c..3e8ae34741 100644 --- a/src/Mod/Arch/ArchFence.py +++ b/src/Mod/Arch/ArchFence.py @@ -158,15 +158,9 @@ class _Fence(ArchComponent.Component): # We want to center the posts on the path. So move them the half width in transformationVector = FreeCAD.Vector(0, - postWidth / 2, 0) - placements = patharray.placements_on_path(rotation, pathwire, - obj.NumberOfSections + 1, - transformationVector, True) - - # The placement of the last object is always the second entry in the list. - # So we move it to the end - placements.append(placements.pop(1)) - - return placements + return patharray.placements_on_path(rotation, pathwire, + obj.NumberOfSections + 1, + transformationVector, True) def calculatePosts(self, obj, postPlacements): posts = []