#include "Model_AttributeDouble.h"
#include <ModelAPI_Feature.h>
#include <ModelAPI_Data.h>
+#include <ModelAPI_Events.h>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
if (myText->Get() != aValue) {
myText->Set(aValue);
owner()->data()->sendAttributeUpdated(this);
+
+ // Send it to evaluator to convert into the double and store in the attribute
+ ModelAPI_AttributeEvalMessage::send(owner()->data()->attribute(id()), this);
}
}
bool Model_AttributeDouble::expressionInvalid()
{
- return myReal->Label().IsAttribute(kInvalidGUID);
+ return myReal->Label().IsAttribute(kInvalidGUID) == Standard_True;
}