Skip to content

Commit 3be7196

Browse files
committed
Fix: mass binding is defined to have multiple inheritance
1 parent 8b6c5eb commit 3be7196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Mass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ using sofa::core::behavior::Mass;
4343
template<class TDOFType>
4444
void declare_mass(py::module &m) {
4545
const std::string pyclass_name = std::string("Mass") + TDOFType::Name();
46-
py::class_<Mass<TDOFType>, sofa::core::behavior::ForceField<TDOFType>, py_shared_ptr<Mass<TDOFType>>> f(m, pyclass_name.c_str(), sofapython3::doc::mass::massClass);
46+
py::class_<Mass<TDOFType>, sofa::core::behavior::ForceField<TDOFType>, py_shared_ptr<Mass<TDOFType>>> f(m, pyclass_name.c_str(), py::multiple_inheritance(), sofapython3::doc::mass::massClass);
4747

4848
using Real = typename TDOFType::Real;
4949
using EigenSparseMatrix = Eigen::SparseMatrix<typename TDOFType::Real, Eigen::RowMajor>;

0 commit comments

Comments
 (0)