Skip to content

Commit

Permalink
[Core] Call super init() in MultiMapping and Multi2Mapping (#4432)
Browse files Browse the repository at this point in the history
Co-authored-by: erik pernod <erik.pernod@gmail.com>
  • Loading branch information
alxbilger and epernod committed Jan 12, 2024
1 parent c402cf4 commit 26f65f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sofa/framework/Core/src/sofa/core/Multi2Mapping.inl
Expand Up @@ -211,6 +211,8 @@ void Multi2Mapping<In1,In2,Out>::computeAccFromMapping(const MechanicalParams* m
template < class In1, class In2, class Out >
void Multi2Mapping<In1, In2, Out>::init()
{
Inherit1::init();

for (auto toModel : this->toModels)
{
if (!toModel->toBaseMechanicalState())
Expand Down
2 changes: 2 additions & 0 deletions Sofa/framework/Core/src/sofa/core/MultiMapping.inl
Expand Up @@ -118,6 +118,8 @@ type::vector<behavior::BaseMechanicalState*> MultiMapping<In,Out>::getMechTo()
template <class In, class Out>
void MultiMapping<In,Out>::init()
{
Inherit1::init();

for (auto toModel : this->toModels)
{
if (!toModel->toBaseMechanicalState())
Expand Down

0 comments on commit 26f65f1

Please sign in to comment.