+ add convenience method recomputeFeature()

+ make method recompute() protected
This commit is contained in:
wmayer
2016-11-06 17:16:50 +01:00
parent b96f3d1163
commit 06da15e643
13 changed files with 41 additions and 32 deletions

View File

@@ -102,6 +102,14 @@ DocumentObjectExecReturn *DocumentObject::execute(void)
return StdReturn;
}
bool DocumentObject::recomputeFeature()
{
Document* doc = this->getDocument();
if (doc)
doc->recomputeFeature(this);
return isValid();
}
short DocumentObject::mustExecute(void) const
{
if(isTouched())