Draft: Fixed placement of one-face Facebinders

This commit is contained in:
Yorik van Havre 2015-06-12 11:08:49 -03:00
parent 40f8bb4143
commit edbbcfb790

View File

@ -5251,11 +5251,14 @@ class _Facebinder(_DraftObject):
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