}
if (aShapeType == TopAbs_FACE || aShapeType == TopAbs_WIRE) { // compound is for the whole sketch selection
- // If this is a wire with plane defined thin it is a sketch-like object
+ // If this is a wire with plane defined then it is a sketch-like object
if (!aConstructionContext->facesNum()) // no faces, update can not work correctly
return setInvalidIfFalse(aSelLab, false);
// if there is no edges indexes, any face can be used: take the first
if (stateArray(myLab)->Value(STATE_INDEX_STATE) != (int)theState) {
stateArray(myLab)->SetValue(STATE_INDEX_STATE, (int)theState);
}
- // send signal even if the new value corresponds to the one in data model: undo issue 980
- static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_ERROR_CHANGED);
- ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent, false);
}
}
Events_Error::send(theError);
}
TDataStd_AsciiString::Set(myLab, theError.c_str());
- static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_ERROR_CHANGED);
- ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent, false);
}
void Model_Data::eraseErrorString()
std::cout<<"*** Add process on finish "<<theFeature->name()<<std::endl;
#endif
updateArguments(theFeature);
- if (theFeature->data()->execState() == ModelAPI_StateMustBeUpdated || myIsPreviewBlocked) {
+ if (theFeature->data()->execState() == ModelAPI_StateMustBeUpdated) {
theFeature->data()->execState(ModelAPI_StateDone);
static ModelAPI_ValidatorsFactory* aFactory = ModelAPI_Session::get()->validators();
aFactory->validate(theFeature); // need to be validated to update the "Apply" state if not previewed
static const char * EVENT_OBJECT_MOVED = "ObjectsMoved";
/// Event ID that visualization must be redisplayed (comes with ModelAPI_ObjectUpdatedMessage)
static const char * EVENT_OBJECT_TO_REDISPLAY = "ObjectsToRedisplay";
-/// Event ID that error state or error message was updated for the object
-static const char * EVENT_OBJECT_ERROR_CHANGED = "ObjectsErrorChanged";
/// Event ID that visualization must be redisplayed (comes with ModelAPI_ObjectUpdatedMessage)
static const char * EVENT_OPERATION_LAUNCHED = "OperationLaunched";
/// Event ID that plugin is loaded (comes with ModelAPI_ObjectUpdatedMessage)