]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the #2716 comment 3 : make smash allow sub-solids selected, but "Apply" butto...
authormpv <mpv@opencascade.com>
Fri, 28 Dec 2018 08:33:47 +0000 (11:33 +0300)
committermpv <mpv@opencascade.com>
Fri, 28 Dec 2018 08:34:06 +0000 (11:34 +0300)
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
src/FeaturesPlugin/boolean_smash_widget.xml

index 844018c7f609e39450aa7dfbbe5a15909c527023..7e0b51b932dbd5df8410c652c98c671716c5ba5d 100644 (file)
@@ -1427,15 +1427,6 @@ bool FeaturesPlugin_ValidatorBooleanSmashSelection::isValid(
         theError = "Error: Selected shapes should have the same type.";
         return false;
       }
-
-      ResultBodyPtr aResCompSolidPtr = ModelAPI_Tools::bodyOwner(aContext);
-      if (aResCompSolidPtr.get()) {
-        GeomShapePtr aCompSolidShape = aResCompSolidPtr->shape();
-        if (aSelectedCompSolidsInOtherList.isBound(aCompSolidShape)) {
-          theError = "Error: Solids from compsolid in other list not allowed.";
-          return false;
-        }
-      }
     } else {
       GeomAPI_Face aFace(aShape);
       GeomPlanePtr aPln = aFace.getPlane();
index cb755c187078b9d2421ec11d739bd9ce7dc5cd4a..c11b9d464d4255afd7ef6c096bd277484eff40e4 100644 (file)
@@ -40,4 +40,5 @@ email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com
     <validator id="PartSet_DifferentObjects"/>
     <validator id="FeaturesPlugin_ValidatorBooleanSmashSelection"/>
   </multi_selector>
+  <validator id="FeaturesPlugin_ValidatorBooleanArguments" parameters="main_objects,tool_objects"/>
 </source>