Salome HOME
8.3. Intersection feature
[modules/shaper.git] / src / GeomValidators / GeomValidators_BooleanSelection.cpp
index f3f6f248d37f2ff5d6eb6162dab1226f46bf6cec..c4af6a2e4b3e2a3075a4d8f22527fcc1302cc7fb 100644 (file)
@@ -40,8 +40,12 @@ bool GeomValidators_BooleanSelection::isValid(const AttributePtr& theAttribute,
         return false;
       }
       std::string aFeatureKind = aFeature->getKind();
-      if(aFeatureKind == "Sketch") {
-        theError = "Error: sketch shape is selected, but only objects are acceptable.";
+      if(aFeatureKind == "Sketch" || 
+         aFeatureKind == "Plane" ||
+         aFeatureKind == "Axis") {
+        theError = "Error: ";
+        theError += aFeatureKind;
+        theError += " shape is not allowed for selection.";
         return false;
       }
       aShape = aContext->shape();