From: dbv Date: Mon, 13 Feb 2017 08:27:31 +0000 (+0300) Subject: Fixed selecting sketch shape by name. X-Git-Tag: V_2.7.0~284^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c82d3e0b0198d187d9f0951b3696f64d5fac42e;p=modules%2Fshaper.git Fixed selecting sketch shape by name. --- diff --git a/src/Model/Model_SelectionNaming.cpp b/src/Model/Model_SelectionNaming.cpp index 2a1fc259f..6868df795 100644 --- a/src/Model/Model_SelectionNaming.cpp +++ b/src/Model/Model_SelectionNaming.cpp @@ -881,6 +881,7 @@ bool Model_SelectionNaming::selectSubShape(const std::string& theType, } } else { // take first or second vertex of the edge TopoDS_Shape aShape = aRes->shape()->impl(); + if (aShape.ShapeType() == TopAbs_VERTEX) continue; TopExp_Explorer anExp(aShape, aType); for(; anExp.More() && anOrientation != 2; anOrientation--) anExp.Next();