Measure: Apply global placement when retrieving shape

This commit is contained in:
hlorus
2024-08-19 08:28:49 +02:00
committed by WandererFan
parent 01611c6a1c
commit aa98951b5c

View File

@@ -102,6 +102,11 @@ TopoDS_Shape getLocatedShape(const App::SubObjectT& subject, Base::Matrix4D* mat
return {};
}
auto gf = dynamic_cast<const App::GeoFeature*>(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();