Assembly: Fix datum typo in isBodySubObject (#28415)

(cherry picked from commit af4e54a6b7)
This commit is contained in:
PaddleStroke
2026-03-18 13:36:12 +01:00
committed by github-actions[bot]
parent b3894fb5dc
commit 442fb00eca
+2 -2
View File
@@ -226,7 +226,7 @@ def process_body(body, returnObj, names, i):
def isBodySubObject(obj):
return (
obj.isDerivedFrom("Sketcher::SketchObject")
or obj.isDerivedFrom("PartDesign::Datum")
or obj.isDerivedFrom("Part::Datum")
or obj.isDerivedFrom("App::DatumElement")
or obj.isDerivedFrom("App::LocalCoordinateSystem")
)
@@ -795,7 +795,7 @@ def getObjMassAndCom(obj, containingPart=None):
obj = obj.getLinkedObject()
if obj.TypeId == "PartDesign::Body":
part = part.Tip
obj = obj.Tip
if obj.isDerivedFrom("Part::Feature"):
mass = obj.Shape.Volume