Arch: Fixed Pipe positioning

This commit is contained in:
Yorik van Havre
2020-05-18 15:24:08 +02:00
parent b0775ee7ce
commit 870ba0c545

View File

@@ -252,7 +252,7 @@ class _ArchPipe(ArchComponent.Component):
v1 = w.Vertexes[1].Point-w.Vertexes[0].Point
v2 = DraftGeomUtils.getNormal(p)
rot = FreeCAD.Rotation(v2,v1)
p.rotate(c,rot.Axis,math.degrees(rot.Angle))
p.rotate(w.Vertexes[0].Point,rot.Axis,math.degrees(rot.Angle))
shapes = []
try:
if p.Faces: