X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Partition.cpp;h=824a9cb469c9c7a9454c00612f770513f067a4d9;hb=3662ff862dc48b187b48bafe3f3d1bfff5ae7345;hp=48c7141a2cd1a7908b397199e71352730189a27a;hpb=4cd36b7cc560c928877bcdfbde2d11091bfedd40;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp index 48c7141a2..824a9cb46 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp @@ -48,8 +48,6 @@ #include #include -static const int THE_PARTITION_VERSION_1 = 20190506; - //================================================================================================= FeaturesPlugin_Partition::FeaturesPlugin_Partition() @@ -60,7 +58,7 @@ FeaturesPlugin_Partition::FeaturesPlugin_Partition() void FeaturesPlugin_Partition::initAttributes() { data()->addAttribute(BASE_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId()); - initVersion(THE_PARTITION_VERSION_1, selectionList(BASE_OBJECTS_ID())); + initVersion(THE_VERSION_1, selectionList(BASE_OBJECTS_ID())); } //================================================================================================= @@ -127,7 +125,7 @@ void FeaturesPlugin_Partition::execute() int aResultIndex = 0; int aPartitionVersion = version(); - if (aPartitionVersion < THE_PARTITION_VERSION_1) { + if (aPartitionVersion < THE_VERSION_1) { // default behaviors of Partition if(aResultShape->shapeType() == GeomAPI_Shape::COMPOUND) { for(GeomAPI_ShapeIterator anIt(aResultShape); anIt.more(); anIt.next()) {