void FeaturesPlugin_Union::initAttributes()
{
data()->addAttribute(BASE_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId());
- initVersion(THE_VERSION_1, selectionList(BASE_OBJECTS_ID()));
+ initVersion(BOP_VERSION_9_4(), selectionList(BASE_OBJECTS_ID()));
}
//=================================================================================================
std::vector<FeaturesPlugin_Tools::ResultBaseAlgo> aResultBaseAlgoList;
ListOfShape aResultShapesList;
- int aUnionVersion = version();
GeomShapePtr aResultCompound = GeomAlgoAPI_CompoundBuilder::compound(ListOfShape());
// Fuse objects.
GeomShapePtr aShape;
GeomAPI_ShapeIterator aCIt(aResultCompound);
- if (aUnionVersion < THE_VERSION_1) {
+ if (data()->version().empty()) {
// if the compound consists of a single sub-shape, take it,
// otherwise, take the full compound
aShape = aCIt.current();