CAM: apply precommit

This commit is contained in:
Adrian Insaurralde Avalos
2024-09-03 14:54:36 -04:00
parent 261ef09348
commit a17a3cf6d7
337 changed files with 26842 additions and 25585 deletions

View File

@@ -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