From aa98951b5c75839eacb30d5455986e733df26d7d Mon Sep 17 00:00:00 2001 From: hlorus <64740362+hlorus@users.noreply.github.com> Date: Mon, 19 Aug 2024 08:28:49 +0200 Subject: [PATCH] Measure: Apply global placement when retrieving shape --- src/Mod/Part/App/MeasureClient.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/Part/App/MeasureClient.cpp b/src/Mod/Part/App/MeasureClient.cpp index ec8275cccd..bd1f9605ea 100644 --- a/src/Mod/Part/App/MeasureClient.cpp +++ b/src/Mod/Part/App/MeasureClient.cpp @@ -102,6 +102,11 @@ TopoDS_Shape getLocatedShape(const App::SubObjectT& subject, Base::Matrix4D* mat return {}; } + auto gf = dynamic_cast(obj); + if (gf) { + shape.setPlacement(gf->globalPlacement()); + } + // Don't get the subShape from datum elements if (obj->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId())) { return shape.getShape();