diff --git a/src/Mod/Points/App/AppPoints.cpp b/src/Mod/Points/App/AppPoints.cpp index 47c5cbd83..7f353f2c3 100644 --- a/src/Mod/Points/App/AppPoints.cpp +++ b/src/Mod/Points/App/AppPoints.cpp @@ -61,6 +61,7 @@ void PointsExport initPoints() // add data types Points::Feature ::init(); + Points::FeatureCustom ::init(); Points::FeaturePython ::init(); Points::ViewFeature ::init(); } diff --git a/src/Mod/Points/App/PointsFeature.cpp b/src/Mod/Points/App/PointsFeature.cpp index 5af36c170..9bc1c9833 100644 --- a/src/Mod/Points/App/PointsFeature.cpp +++ b/src/Mod/Points/App/PointsFeature.cpp @@ -91,6 +91,17 @@ void Feature::onChanged(const App::Property* prop) // --------------------------------------------------------- +namespace App { +/// @cond DOXERR +PROPERTY_SOURCE_TEMPLATE(Points::FeatureCustom, Points::Feature) +/// @endcond + +// explicit template instantiation +template class PointsExport FeatureCustomT; +} + +// --------------------------------------------------------- + namespace App { /// @cond DOXERR PROPERTY_SOURCE_TEMPLATE(Points::FeaturePython, Points::Feature) diff --git a/src/Mod/Points/App/PointsFeature.h b/src/Mod/Points/App/PointsFeature.h index 512d9e778..963b73e7b 100644 --- a/src/Mod/Points/App/PointsFeature.h +++ b/src/Mod/Points/App/PointsFeature.h @@ -25,6 +25,7 @@ #define POINTS_FEATURE_H #include +#include #include #include #include @@ -75,6 +76,7 @@ public: PropertyPointKernel Points; /**< The point kernel property. */ }; +typedef App::FeatureCustomT FeatureCustom; typedef App::FeaturePythonT FeaturePython; } //namespace Points