Draft: Fix Draft_SelectPlane ignores nesting

This commit is contained in:
Roy-043
2021-10-20 10:16:49 +02:00
committed by GitHub
parent 25c3da4f0b
commit b6faf7f016

View File

@@ -209,7 +209,9 @@ class Draft_SelectPlane:
if len(sel.SubElementNames) == 1:
# look for a face or a plane
if "Face" in sel.SubElementNames[0]:
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0], self.getOffset())
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0],
self.getOffset(),
sel.Object.getParentGeoFeatureGroup())
self.display(FreeCAD.DraftWorkingPlane.axis)
return True
elif sel.SubElementNames[0] == "Plane":