From b314c951295864bfb0c7a56bf9d14b4453b23657 Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 2 Feb 2017 15:14:45 +0300 Subject: [PATCH] Minor fixes. --- src/FeaturesPlugin/FeaturesPlugin_Tools.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp index 22431b98b..847a8916f 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp @@ -22,7 +22,6 @@ void FeaturesPlugin_Tools::storeModifiedShapes(GeomAlgoAPI_MakeShape& theAlgo, for(GeomAPI_ShapeIterator anIt(theBaseShape); anIt.more(); anIt.next()) { storeModifiedShapes(theAlgo, theResultBody, theBaseShape, theTag, theName, theSubShapes); - theTag++; } break; } @@ -36,15 +35,20 @@ void FeaturesPlugin_Tools::storeModifiedShapes(GeomAlgoAPI_MakeShape& theAlgo, || theBaseShape->shapeType() == GeomAPI_Shape::SOLID) { break; } + ++theTag; } case GeomAPI_Shape::FACE: - case GeomAPI_Shape::WIRE: + case GeomAPI_Shape::WIRE: { theResultBody->loadAndOrientModifiedShapes(&theAlgo, theBaseShape, GeomAPI_Shape::EDGE, - ++theTag, theName + "_Edge", theSubShapes); - case GeomAPI_Shape::EDGE: + theTag, theName + "_Edge", theSubShapes); + ++theTag; + } + case GeomAPI_Shape::EDGE: { theResultBody->loadAndOrientModifiedShapes(&theAlgo, theBaseShape, GeomAPI_Shape::VERTEX, - ++theTag, theName + "_Vertex", theSubShapes); + theTag, theName + "_Vertex", theSubShapes); + ++theTag; + } } } -- 2.39.2