diff --git a/src/Mod/Draft/draftguitools/gui_selectplane.py b/src/Mod/Draft/draftguitools/gui_selectplane.py index 3915e12cea..1017e0c419 100644 --- a/src/Mod/Draft/draftguitools/gui_selectplane.py +++ b/src/Mod/Draft/draftguitools/gui_selectplane.py @@ -195,10 +195,7 @@ class Draft_SelectPlane: sel = FreeCADGui.Selection.getSelectionEx() if len(sel) == 1: sel = sel[0] - if hasattr(sel.Object, 'TypeId') and sel.Object.TypeId == 'App::Part': - self.setPlaneFromObjPlacement(sel.Object) - return True - elif hasattr(sel.Object, "TypeId") and sel.Object.TypeId == "PartDesign::Plane": + if hasattr(sel.Object, 'TypeId') and (sel.Object.TypeId == 'App::Part' or sel.Object.TypeId == 'PartDesign::Plane'): self.setPlaneFromObjPlacement(sel.Object) return True elif Draft.getType(sel.Object) == "Axis":