From aa5db283cff11c527c63d88eef1cc4442c18cd21 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 19 Aug 2017 11:56:08 -0300 Subject: [PATCH] Arch: Fixed orienation bug in structure --- src/Mod/Arch/ArchStructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index 1bb9b9b138..1a68826187 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -505,7 +505,6 @@ class _Structure(ArchComponent.Component): if len(baseface.Faces) > 1: baseface = baseface.Faces[0] normal = baseface.normalAt(0,0) - normal = placement.inverse().Rotation.multVec(normal) if not baseface: for w in obj.Base.Shape.Wires: w.fix(0.1,0,1) # fixes self-intersecting wires @@ -516,6 +515,7 @@ class _Structure(ArchComponent.Component): baseface = f normal = f.normalAt(0,0) base,placement = self.rebase(baseface) + normal = placement.inverse().Rotation.multVec(normal) elif (len(obj.Base.Shape.Edges) == 1) and (len(obj.Base.Shape.Vertexes) == 1): # closed edge w = Part.Wire(obj.Base.Shape.Edges[0])