]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed selecting sketch shape by name.
authordbv <dbv@opencascade.com>
Mon, 13 Feb 2017 08:27:31 +0000 (11:27 +0300)
committerdbv <dbv@opencascade.com>
Mon, 13 Feb 2017 08:27:31 +0000 (11:27 +0300)
src/Model/Model_SelectionNaming.cpp

index 2a1fc259fc3786ac467fe5792d7600208e8c19a8..6868df795b3a689eb9dd04f5e325ae27f7a116d5 100644 (file)
@@ -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<TopoDS_Shape>();
+                    if (aShape.ShapeType() == TopAbs_VERTEX) continue;
                     TopExp_Explorer anExp(aShape, aType);
                     for(; anExp.More() && anOrientation != 2; anOrientation--)
                       anExp.Next();