Salome HOME
Initial implementation of support of any level of hierarchy in Result Bodies.
[modules/shaper.git] / src / GeomValidators / GeomValidators_BodyShapes.cpp
index bcfae3effe85aa00701b7cf8094d295dba1dc549..8faa007ecb1942156b8ceac9d09421cedd65a845 100644 (file)
@@ -49,7 +49,7 @@ bool GeomValidators_BodyShapes::isValid(const AttributePtr& theAttribute,
     }
     // additional check that the selected object is top-level result
     if (theArguments.size() > 0 && *(theArguments.rbegin()) == "toplevel") {
-      if (ModelAPI_Tools::compSolidOwner(aContext).get()) {
+      if (ModelAPI_Tools::bodyOwner(aContext).get()) {
         theError = "Error: Only higher level shape allowed.";
         return false;
       }