From 983e70d04667b09862d1f52fd05a82f21e663d6e Mon Sep 17 00:00:00 2001 From: Ajinkya Dahale Date: Tue, 6 Jan 2026 07:05:50 +0530 Subject: [PATCH] Sketcher: Override clang-format for some readability See https://github.com/FreeCAD/FreeCAD/pull/22951#discussion_r2314544159. --- src/Mod/Sketcher/App/SketchObject.cpp | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index c43ef106ec..df06d41940 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -4387,8 +4387,9 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, continue; } if (!refIsAxisAligned - && (constr->Type == Sketcher::DistanceX || constr->Type == Sketcher::DistanceY - || constr->Type == Sketcher::Vertical + && (constr->Type == Sketcher::DistanceX // + || constr->Type == Sketcher::DistanceY // + || constr->Type == Sketcher::Vertical // || constr->Type == Sketcher::Horizontal)) { // this includes all non-directional single GeoId constraints, as radius, // diameter, weight,... @@ -4425,11 +4426,14 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, }; if (constr->Third == GeoEnum::GeoUndef) { - if (!(constr->Type == Sketcher::Coincident - || constr->Type == Sketcher::Perpendicular - || constr->Type == Sketcher::Parallel || constr->Type == Sketcher::Tangent - || constr->Type == Sketcher::Distance || constr->Type == Sketcher::Equal - || constr->Type == Sketcher::Angle || constr->Type == Sketcher::PointOnObject + if (!(constr->Type == Sketcher::Coincident // + || constr->Type == Sketcher::Perpendicular // + || constr->Type == Sketcher::Parallel // + || constr->Type == Sketcher::Tangent // + || constr->Type == Sketcher::Distance // + || constr->Type == Sketcher::Equal // + || constr->Type == Sketcher::Angle // + || constr->Type == Sketcher::PointOnObject // || constr->Type == Sketcher::InternalAlignment)) { continue; } @@ -4529,8 +4533,10 @@ int SketchObject::addSymmetric(const std::vector& geoIdList, createEqualityConstr(geoId1, geoId2); createSymConstr(geoId1, geoId2, PointPos::mid, PointPos::mid); } - else if (geo->is() || geo->is() - || geo->is() || geo->is()) { + else if (geo->is() // + || geo->is() // + || geo->is() // + || geo->is()) { createEqualityConstr(geoId1, geoId2); createSymConstr(geoId1, geoId2,