Arch: Fixed wrong wall blocks when wall has an offset

This commit is contained in:
Yorik van Havre
2019-04-25 18:00:36 -03:00
parent e580864410
commit bd4f4a5765

View File

@@ -622,7 +622,7 @@ class _Wall(ArchComponent.Component):
if offset:
t = edge.tangentAt(offset)
p = t.cross(n)
p.multiply(1.1*obj.Width.Value)
p.multiply(1.1*obj.Width.Value+obj.Offset.Value)
p1 = edge.valueAt(offset).add(p)
p2 = edge.valueAt(offset).add(p.negative())
sh = Part.LineSegment(p1,p2).toShape()