From bcb01feb448c9b019b17a401bae45fd9089c6cf4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 23 Nov 2025 23:51:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Mod/Import/App/ExportOCAF2.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Mod/Import/App/ExportOCAF2.cpp b/src/Mod/Import/App/ExportOCAF2.cpp index b56152f786..34a0d80f64 100644 --- a/src/Mod/Import/App/ExportOCAF2.cpp +++ b/src/Mod/Import/App/ExportOCAF2.cpp @@ -426,10 +426,7 @@ TDF_Label ExportOCAF2::exportObject( App::DocumentObject* tip = body->Tip.getValue(); if (tip) { // reget shape from tip to ensure latest feature is included - auto tipShape = Part::Feature::getTopoShape( - tip, - Part::ShapeOption::Transform - ); + auto tipShape = Part::Feature::getTopoShape(tip, Part::ShapeOption::Transform); if (!tipShape.isNull()) { shape = tipShape; } @@ -515,9 +512,8 @@ TDF_Label ExportOCAF2::exportObject( // 1. no subobjects (subs.empty()) // 2. is a partdesign feature ie. pad, pocket, boolean // 3. is a partdesign body, should export as single shape via its tip, not as assembly - if (subs.empty() - || obj->isDerivedFrom(PartDesign::Feature::getClassTypeId()) - || obj->isDerivedFrom(PartDesign::Body::getClassTypeId())) { + if (subs.empty() || obj->isDerivedFrom(PartDesign::Feature::getClassTypeId()) + || obj->isDerivedFrom(PartDesign::Body::getClassTypeId())) { if (!parent.IsNull()) { // Search for non-located shape to see if we've stored the original shape before