Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
* Contact information: contact@sofa-framework.org *
******************************************************************************/

#include <sofa/core/objectmodel/Context.h>
#include <sofa/core/objectmodel/Base.h>
#include <sofa/core/objectmodel/BaseContext.h>
#include <SofaPython3/Sofa/Core/Binding_Base.h>
#include <SofaPython3/Sofa/Core/Binding_BaseContext.h>
#include <SofaPython3/Sofa/Core/Binding_Context.h>
Expand All @@ -29,7 +30,7 @@ namespace py { using namespace pybind11; }
namespace sofapython3 {

void moduleAddContext(py::module& m) {
py::class_<Context, BaseContext, py_shared_ptr<Context>> (m, "Context", "Implementation of BaseContext, storing all shared parameters in Datas");
py::class_<BaseContext, Base, py_shared_ptr<BaseContext>> (m, "Context", "Implementation of BaseContext, storing all shared parameters in Datas");
}

} // namespace sofapython3
2 changes: 1 addition & 1 deletion bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ void moduleAddNode(py::module &m) {
py_shared_ptr<sofa::core::objectmodel::BaseNode>>(m, "BaseNode", "Base class for simulation node");

py::class_<Node, sofa::core::objectmodel::BaseNode,
sofa::core::objectmodel::Context, py_shared_ptr<Node>>
sofa::core::objectmodel::BaseContext, py_shared_ptr<Node>>
p(m, "Node", sofapython3::doc::sofa::core::Node::Class);

PythonFactory::registerType<sofa::simulation::Node>(
Expand Down
Loading