https://forum.freecadweb.org/viewtopic. ... 48#p470527
The problem is with this portion in the code:
Code: Select all
elif "Face" in comp:
en = int(comp[4:])-1
if len(shape.Faces) > en:
face = shape.Faces[en]
Looking above that part in the code it is obvious that a similar issue for edges was fixed:
Code: Select all
if "Edge" in comp:
# we are snapping to an edge
edge = None
if shape.ShapeType == "Edge":
edge = shape
else:
en = int(comp[4:])-1
if len(shape.Edges) > en:
edge = shape.Edges[en]
if edge: