Skip to content

Commit

Permalink
Draft: Fixed placement of one-face Facebinders
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 12, 2015
1 parent 40f8bb4 commit edbbcfb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Mod/Draft/Draft.py
Expand Up @@ -5251,11 +5251,14 @@ def execute(self,obj):
if not faces:
return
import Part
sh = faces.pop()
try:
for f in faces:
sh = sh.fuse(f)
sh = sh.removeSplitter()
if len(faces) > 1:
sh = faces.pop()
sh = sh.multiFuse(faces)
sh = sh.removeSplitter()
else:
sh = faces[0]
sh.transformShape(sh.Matrix, True)
except Part.OCCError:
print("Draft: error building facebinder")
return
Expand Down

0 comments on commit edbbcfb

Please sign in to comment.