]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #485: Avoid selection of shapes in case of custom selection modes
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 22 Apr 2015 14:06:07 +0000 (17:06 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 22 Apr 2015 14:06:07 +0000 (17:06 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp

index eb022a2bf0d853202e1a3180a9dee43da9aade9b..2f85e9a992f03f38b128adedf969a5700818f3b9 100644 (file)
@@ -64,6 +64,10 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
 void ModuleBase_ResultPrs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
                                             const Standard_Integer aMode)
 {
+  if (aMode > TopAbs_SHAPE)
+    // In order to avoid using custom selection modes
+    return;
+
   if (myIsSketchMode) {
     if (aMode == TopAbs_FACE) {
       BRep_Builder aBuilder;