From 6c82d3e0b0198d187d9f0951b3696f64d5fac42e Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 13 Feb 2017 11:27:31 +0300 Subject: [PATCH] Fixed selecting sketch shape by name. --- src/Model/Model_SelectionNaming.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.2