App: Fix ExtensionPython macro
This commit is contained in:
committed by
Benjamin Nauck
parent
32ddaff649
commit
0cdf0af0c6
@@ -23,9 +23,9 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Application.h"
|
||||
#include "ExtensionContainer.h"
|
||||
|
||||
// inclusion of the generated files (generated out of PropertyContainerPy.xml)
|
||||
// inclusion of the generated files (generated out of ExtensionPy.pyi)
|
||||
#include <App/ExtensionPy.h>
|
||||
#include <App/ExtensionPy.cpp>
|
||||
|
||||
@@ -37,6 +37,11 @@ std::string ExtensionPy::representation() const
|
||||
return {"<extension>"};
|
||||
}
|
||||
|
||||
Py::Object ExtensionPy::getExtendedObject() const
|
||||
{
|
||||
return Py::Object(getExtensionPtr()->getExtendedContainer()->getPyObject(), true);
|
||||
}
|
||||
|
||||
PyObject* ExtensionPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user