Skip to content

Commit

Permalink
Arch: fix wall's addDefault call
Browse files Browse the repository at this point in the history
A previous fix was in 8d4ed61, but some calls to `addDefault`
were not changed.
  • Loading branch information
vocx-fc authored and yorikvanhavre committed May 4, 2020
1 parent da413bd commit 0fe0f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/ArchWall.py
Expand Up @@ -392,10 +392,10 @@ def getPoint(self,point=None,obj=None):
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()
Expand Down

0 comments on commit 0fe0f2a

Please sign in to comment.