Introduce Scoped links to prevent cross cs links

This commit is contained in:
Stefan Tröger
2017-06-10 11:14:44 +02:00
committed by wmayer
parent 51005bb81e
commit 3dccf50e83
4 changed files with 106 additions and 21 deletions

View File

@@ -76,7 +76,7 @@ App::DocumentObjectExecReturn *DocumentObject::recompute(void)
{
//check if the links are valid before making the recompute
if(!GeoFeatureGroupExtension::areLinksValid(this))
return new App::DocumentObjectExecReturn("Links between different GeoFeatureGroups are not valid", this);
return new App::DocumentObjectExecReturn("Links go out of the allowed scope", this);
// set/unset the execution bit
ObjectStatusLocker<ObjectStatus, DocumentObject> exe(App::Recompute, this);