From: vsv Date: Wed, 16 May 2018 15:16:19 +0000 (+0300) Subject: Do not use Fields and Groups in selection in sketcher X-Git-Tag: V8_5_0rc2~8^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=240eda1e2c372125bbe02a7370e52762bc282d6f;p=modules%2Fshaper.git Do not use Fields and Groups in selection in sketcher --- 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()) {