Arch: fix wall's addDefault call

A previous fix was in 8e458abf53, but some calls to `addDefault`
were not changed.
This commit is contained in:
vocx-fc
2020-05-01 13:24:04 -05:00
committed by Yorik van Havre
parent efcbbce28c
commit 32cf582e08

View File

@@ -392,10 +392,10 @@ class _CommandWall:
if self.AUTOJOIN:
FreeCADGui.doCommand('Arch.addComponents(FreeCAD.ActiveDocument.'+FreeCAD.ActiveDocument.Objects[-1].Name+',FreeCAD.ActiveDocument.'+w.Name+')')
else:
self.addDefault(l)
self.addDefault()
else:
# add new wall as addition to the first existing one
self.addDefault(l)
self.addDefault()
if self.AUTOJOIN:
FreeCADGui.doCommand('Arch.addComponents(FreeCAD.ActiveDocument.'+FreeCAD.ActiveDocument.Objects[-1].Name+',FreeCAD.ActiveDocument.'+self.existing[0].Name+')')
FreeCAD.ActiveDocument.commitTransaction()