Extensions: Make Python Integration work

This commit is contained in:
Stefan Tröger
2016-06-03 19:19:54 +02:00
committed by wmayer
parent 88484d7054
commit f0f31ff94c
19 changed files with 622 additions and 369 deletions

View File

@@ -84,7 +84,7 @@ App::DocumentObject *OriginGroupExtension::getGroupOfObject (const DocumentObjec
return 0;
}
short OriginGroupExtension::extensionMustExecute() const {
short OriginGroupExtension::extensionMustExecute() {
if (Origin.isTouched ()) {
return 1;
} else {
@@ -123,4 +123,14 @@ void OriginGroupExtension::onExtendedUnsetupObject () {
}
GeoFeatureGroupExtension::onExtendedUnsetupObject ();
}
// Python feature ---------------------------------------------------------
namespace App {
PROPERTY_SOURCE_TEMPLATE(App::OriginGroupExtensionPython, App::OriginGroupExtension)
// explicit template instantiation
template class AppExport ExtensionPythonT<GroupExtensionPythonT<OriginGroupExtension>>;
}