]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_WidgetSketchLabel.cpp
Salome HOME
Sketch shape in plane selection filter should not be activated while PartSet_WidgetSh...
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.cpp
index b5ad01f40834b2e303f51067e2e1befb7733431b..5a82272f4619177adefbfcaf9163fb2314680537 100644 (file)
@@ -526,20 +526,23 @@ void PartSet_WidgetSketchLabel::deactivate()
     myWorkshop->viewer()->update();
 }
 
-void PartSet_WidgetSketchLabel::selectionModes(QIntList& theModes, bool& isAdditional)
+void PartSet_WidgetSketchLabel::selectionModes(int& theModuleSelectionModes, QIntList& theModes)
 {
+  theModuleSelectionModes = -1;
   std::shared_ptr<GeomAPI_Pln> aPlane = plane();
   if (!aPlane.get())
     theModes << TopAbs_FACE;
-  isAdditional = true;
 }
 
-void PartSet_WidgetSketchLabel::selectionFilters(SelectMgr_ListOfFilter& theSelectionFilters)
+void PartSet_WidgetSketchLabel::selectionFilters(int& theModuleSelectionFilters,
+                                                 SelectMgr_ListOfFilter& theSelectionFilters)
 {
+  theModuleSelectionFilters = -1;
   std::shared_ptr<GeomAPI_Pln> aPlane = plane();
   if (aPlane.get())
     return;
-  return ModuleBase_WidgetValidated::selectionFilters(theSelectionFilters);
+  return ModuleBase_WidgetValidated::selectionFilters(theModuleSelectionFilters,
+                                                      theSelectionFilters);
 }
 
 std::shared_ptr<GeomAPI_Dir>