CAM: apply precommit
This commit is contained in:
@@ -34,23 +34,26 @@ PROPERTY_SOURCE(Path::Feature, App::GeoFeature)
|
||||
|
||||
Feature::Feature()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(Path,(Path::Toolpath()),"Base",App::Prop_None,"The path data of this feature");
|
||||
ADD_PROPERTY_TYPE(Path,
|
||||
(Path::Toolpath()),
|
||||
"Base",
|
||||
App::Prop_None,
|
||||
"The path data of this feature");
|
||||
}
|
||||
|
||||
Feature::~Feature()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
short Feature::mustExecute() const
|
||||
{
|
||||
return App::GeoFeature::mustExecute();
|
||||
}
|
||||
|
||||
PyObject *Feature::getPyObject()
|
||||
PyObject* Feature::getPyObject()
|
||||
{
|
||||
if (PythonObject.is(Py::_None())){
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new App::DocumentObjectPy(this),true);
|
||||
PythonObject = Py::Object(new App::DocumentObjectPy(this), true);
|
||||
}
|
||||
return Py::new_reference_to(PythonObject);
|
||||
}
|
||||
@@ -62,14 +65,17 @@ void Feature::onChanged(const App::Property* prop)
|
||||
|
||||
// Python Path feature ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
namespace App
|
||||
{
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Path::FeaturePython, Path::Feature)
|
||||
template<> const char* Path::FeaturePython::getViewProviderName() const {
|
||||
template<>
|
||||
const char* Path::FeaturePython::getViewProviderName() const
|
||||
{
|
||||
return "PathGui::ViewProviderPathPython";
|
||||
}
|
||||
/// @endcond
|
||||
|
||||
// explicit template instantiation
|
||||
template class PathExport FeaturePythonT<Path::Feature>;
|
||||
}
|
||||
} // namespace App
|
||||
|
||||
Reference in New Issue
Block a user