]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not use Fields and Groups in selection in sketcher
authorvsv <vsv@opencascade.com>
Wed, 16 May 2018 15:16:19 +0000 (18:16 +0300)
committervsv <vsv@opencascade.com>
Wed, 16 May 2018 15:16:19 +0000 (18:16 +0300)
src/PartSet/PartSet_ExternalPointsMgr.cpp

index 3de84434e2dd3942e87e923eca84b6aa602c5bf9..e6969c8090f22da7333de96f5207e298ad9bc09d 100644 (file)
@@ -27,6 +27,8 @@
 #include "PartSet_Tools.h"
 
 #include <ModelAPI_Tools.h>
+#include <ModelAPI_ResultField.h>
+#include <ModelAPI_ResultGroup.h>
 
 #include <ModuleBase_IWorkshop.h>
 #include <ModuleBase_ViewerPrs.h>
@@ -97,6 +99,12 @@ QList<std::shared_ptr<ModuleBase_ViewerPrs>> PartSet_ExternalPointsMgr::findCirc
       continue;
 
     ResultPtr aResObj = std::dynamic_pointer_cast<ModelAPI_Result>(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()) {