Skip to content

Commit

Permalink
Draft: Fixed upgrading several faces
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 18, 2016
1 parent 7afcb4b commit 44989a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2754,12 +2754,12 @@ def makeShell(objectslist):
"""makes a shell with the given objects"""
faces = []
for obj in objectslist:
faces.append(obj.Shape.Faces)
faces.extend(obj.Shape.Faces)
sh = Part.makeShell(faces)
if sh:
if sh.Faces:
newob = FreeCAD.ActiveDocument.addObject("Part::Feature","Shell")
newob.Shape = sh
newobj = FreeCAD.ActiveDocument.addObject("Part::Feature","Shell")
newobj.Shape = sh
addList.append(newobj)
deleteList.extend(objectslist)
return newobj
Expand Down

0 comments on commit 44989a8

Please sign in to comment.