/// Request for initialization of data model of the object: adding all attributes
virtual void initAttributes() = 0;
+ /// Returns the feature is disabled or not.
+ virtual bool isDisabled() const = 0;
+
/// Called on change of any argument-attribute of this object
/// \param theID identifier of changed attribute
MODELAPI_EXPORT virtual void attributeChanged(const std::string& theID);
ObjectPtr aObj = (*aIt);
// Hide the object if it is invalid or concealed one
- bool aHide = !aObj->data() || !aObj->data()->isValid();
+ bool aHide = !aObj->data() || !aObj->data()->isValid() || aObj->isDisabled();
if (!aHide) { // check that this is not hidden result
ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aObj);
aHide = aRes && aRes->isConcealed();