Techdraw: Fix assembly exploded view (#17726)

This commit is contained in:
PaddleStroke
2024-11-11 17:53:34 +01:00
committed by GitHub
parent 03cb520215
commit d9ec45b2f6

View File

@@ -137,9 +137,10 @@ TopoDS_Shape ShapeExtractor::getShapes(const std::vector<App::DocumentObject*> l
else {
auto shape = Part::Feature::getShape(obj);
// if link obj has a shape, we use that shape.
if(!SU::isShapeReallyNull((shape))) {
if(!SU::isShapeReallyNull(shape) && !isExplodedView) {
sourceShapes.push_back(getLocatedShape(obj));
} else {
}
else {
std::vector<TopoDS_Shape> shapeList = getShapesFromObject(obj);
sourceShapes.insert(sourceShapes.end(), shapeList.begin(), shapeList.end());
}