#include <ModelAPI_Attribute.h>
#include <ModelAPI_Data.h>
#include <ModelAPI_Feature.h>
+#include <ModelAPI_FiltersFeature.h>
#include <ModelAPI_Object.h>
#include <ModelAPI_Session.h>
aFeatureFind->second.find(*it) == aFeatureFind->second.end()) {
theError = "Attribute \"%1\" is not initialized.";
theError.addParameter(anAttr->id());
- theError.setContext(theFeature->getKind() + ":" + anAttr->id());
+ // workaround for the filters selection feature: do not append the attribute id
+ if (std::dynamic_pointer_cast<ModelAPI_FiltersFeature>(theFeature))
+ theError.setContext(theFeature->getKind());
+ else
+ theError.setContext(theFeature->getKind() + ":" + anAttr->id());
return false;
}
}