Draft: make Draft_SelectPlane recognize the new Part_DatumPlane object

Forum topic:
https://forum.freecad.org/viewtopic.php?t=96058
This commit is contained in:
Roy-043
2025-04-04 14:26:28 +02:00
parent 72c1659e4d
commit 83db2c260c

View File

@@ -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)