move handling of dynamic properties from FeaturePythonPyT to DocumentObjectPy
This commit is contained in:
@@ -31,8 +31,9 @@
|
||||
#include <Base/Interpreter.h>
|
||||
#include <Base/Reader.h>
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include "FeaturePython.h"
|
||||
#include "FeaturePythonPyImp.h"
|
||||
#include "FeaturePythonPyImp.h"
|
||||
|
||||
using namespace App;
|
||||
|
||||
@@ -192,7 +193,7 @@ PyObject *FeaturePythonImp::getPyObject(void)
|
||||
// ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
PROPERTY_SOURCE_TEMPLATE(App::FeaturePython, App::DocumentObject)
|
||||
PROPERTY_SOURCE_TEMPLATE(App::FeaturePython, App::DocumentObject)
|
||||
template<> const char* App::FeaturePython::getViewProviderName(void) const {
|
||||
return "Gui::ViewProviderPythonFeature";
|
||||
}
|
||||
@@ -208,11 +209,11 @@ template class AppExport FeaturePythonT<DocumentObject>;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
|
||||
namespace App {
|
||||
PROPERTY_SOURCE_TEMPLATE(App::GeometryPython, App::GeoFeature)
|
||||
PROPERTY_SOURCE_TEMPLATE(App::GeometryPython, App::GeoFeature)
|
||||
template<> const char* App::GeometryPython::getViewProviderName(void) const {
|
||||
return "Gui::ViewProviderPythonGeometry";
|
||||
}
|
||||
// explicit template instantiation
|
||||
template class AppExport FeaturePythonT<GeoFeature>;
|
||||
template class AppExport FeaturePythonT<GeoFeature>;}
|
||||
|
||||
Reference in New Issue
Block a user