Expose global placement calculation to python API

This commit is contained in:
Stefan Tröger
2017-09-18 19:50:07 +02:00
committed by wmayer
parent ca74544959
commit 84667e46f0
3 changed files with 25 additions and 0 deletions

View File

@@ -112,6 +112,9 @@ DocumentObject* GeoFeatureGroupExtension::getGroupOfObject(const DocumentObject*
Base::Placement GeoFeatureGroupExtension::globalGroupPlacement() {
if(getExtendedObject()->isRecomputing())
throw Base::Exception("Global placement cannot be calculated on recompute");
return recursiveGroupPlacement(this);
}