Scenario:
1. Create Extrusion, ExtrusionSketch, Boolean between them, ExtrusionCut, Partition.
2. Save study
3. Open saved study. The ExtrusionCut result is visualized. Call Hide for Partition, ExtrusionCut is in the viewer however there is no such a result in Bodies.
bool aHide = !anObject->data()->isValid() ||
anObject->isDisabled() ||
!anObject->isDisplayed();
+ if (!aHide) { // check that this is not hidden result
+ ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
+ bool isConcealed = aRes && aRes->isConcealed();
+ aHide = aRes && aRes->isConcealed();
+ }
if (!aHide) {
// setDisplayed has to be called in order to synchronize internal state of the object
// with list of displayed objects