From 12aad8f6bb1934ac720be53196b4da54aec00ee8 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 23 Aug 2018 08:33:51 +0300 Subject: [PATCH] Dump with geometrical selection Fix selection of auxiliary sketch entities --- src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp b/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp index b15754742..7921c27df 100644 --- a/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp +++ b/src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp @@ -244,10 +244,11 @@ namespace ModelGeomAlgo_Shape } } - // one more special case: a vertex selected is a sketch point; - // it is not included into sketch result; thus, it is necessary - // to pass through the sketch sub-features and verify all points - if (theSelected.empty() && theShapeType == GeomAPI_Shape::VERTEX && !aResults.empty()) { + // one more special case: the selected entity is a separated sketch point + // or an auxiliary sketch edge; they are not included into the sketch result; + // thus, it is necessary to pass through the sketch sub-features and find selected. + if (theSelected.empty() && !aResults.empty() && + (theShapeType == GeomAPI_Shape::VERTEX || theShapeType == GeomAPI_Shape::EDGE)) { CompositeFeaturePtr aCF = std::dynamic_pointer_cast(theFeature); std::shared_ptr aSketchEdges = std::dynamic_pointer_cast(aResults.front()->shape()); -- 2.39.2