- if (myBool->Get() != theValue) {
- myBool->Set(theValue? 1 : 0);
- static Events_ID anEvent = Events_Loop::eventByName(EVENT_FEATURE_UPDATED);
- Model_FeatureUpdatedMessage aMsg(owner(), anEvent);
- Events_Loop::loop()->send(aMsg);
+ Standard_Boolean aValue = theValue ? Standard_True : Standard_False;
+ if (!myIsInitialized || myBool->Get() != aValue) {
+ myBool->Set(aValue);
+ owner()->data()->sendAttributeUpdated(this);