Merge pull request #4054 from Roy-043/ArchRoof_processSubShapes_placement_fix

Arch: Fix for ArchRoof. When processing a roof's subshapes the placement of the roof was ignored.
This commit is contained in:
Yorik van Havre
2020-11-16 13:06:11 +01:00
committed by GitHub

View File

@@ -806,7 +806,7 @@ class _Roof(ArchComponent.Component):
base = self.shps.pop()
for s in self.shps:
base = base.fuse(s)
base = self.processSubShapes(obj, base)
base = self.processSubShapes(obj, base, pl)
self.applyShape(obj, base, pl, allownosolid = True)
## subVolume
@@ -819,7 +819,7 @@ class _Roof(ArchComponent.Component):
self.sub.Placement = pl
elif base:
base = self.processSubShapes(obj, base)
base = self.processSubShapes(obj, base, pl)
self.applyShape(obj, base, pl, allownosolid = True)
else:
FreeCAD.Console.PrintMessage(translate("Arch", "Unable to create a roof"))