From 83db2c260ce151474f5b5868e8c6200589dbda00 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Fri, 4 Apr 2025 14:26:28 +0200 Subject: [PATCH] Draft: make Draft_SelectPlane recognize the new Part_DatumPlane object Forum topic: https://forum.freecad.org/viewtopic.php?t=96058 --- src/Mod/Draft/WorkingPlane.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index 9c1820dc29..202e36b507 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -1269,7 +1269,7 @@ class PlaneGui(PlaneBase): place = FreeCAD.Placement(mtx) typ = utils.get_type(obj) - if typ in ["App::Part", "PartDesign::Plane", "Axis", "SectionPlane"]: + if typ in ["App::Part", "Part::DatumPlane", "PartDesign::Plane", "Axis", "SectionPlane"]: ret = self.align_to_obj_placement(obj, offset, place, _hist_add) elif typ == "WorkingPlaneProxy": ret = self.align_to_wp_proxy(obj, offset, place, _hist_add)