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();
<validator id="PartSet_DifferentObjects"/>
<validator id="FeaturesPlugin_ValidatorBooleanSmashSelection"/>
</multi_selector>
+ <validator id="FeaturesPlugin_ValidatorBooleanArguments" parameters="main_objects,tool_objects"/>
</source>