From 240eda1e2c372125bbe02a7370e52762bc282d6f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 16 May 2018 18:16:19 +0300 Subject: [PATCH] Do not use Fields and Groups in selection in sketcher --- src/PartSet/PartSet_ExternalPointsMgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PartSet/PartSet_ExternalPointsMgr.cpp b/src/PartSet/PartSet_ExternalPointsMgr.cpp index 3de84434e..e6969c809 100644 --- a/src/PartSet/PartSet_ExternalPointsMgr.cpp +++ b/src/PartSet/PartSet_ExternalPointsMgr.cpp @@ -27,6 +27,8 @@ #include "PartSet_Tools.h" #include +#include +#include #include #include @@ -97,6 +99,12 @@ QList> PartSet_ExternalPointsMgr::findCirc continue; ResultPtr aResObj = std::dynamic_pointer_cast(aObj); + + // Do not use Fields and groups in selection in sketcher + if ((aResObj->groupName() == ModelAPI_ResultField::group()) || + (aResObj->groupName() == ModelAPI_ResultGroup::group())) + continue; + if (aResObj.get()) { GeomShapePtr aShape = aResObj->shape(); if (aShape.get()) { -- 2.39.2