if(aContext.get()) {
aDirShape = aContext->shape();
}
+
+ if (aDirShape.get() && aDirShape->isCompound()) {
+ GeomAPI_ShapeIterator anIt(aDirShape);
+ aDirShape = anIt.current();
+ }
}
}
}
std::shared_ptr<GeomAPI_Shape> aShape = anAttrSelection->value();
GeomShapePtr aContextShape;
- if (!aShape.get() && aContext.get()) {
+ if (aContext.get()) {
aContextShape = aContext->shape();
+ }
+ if (!aShape.get()) {
aShape = aContextShape;
}
if (!aShape.get()) {