From fa49cf9023f630037ff5d54f0fcd6ff1542e774a Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Fri, 12 Jan 2024 15:59:58 +0100 Subject: [PATCH] Harmless missing call to super init() The init() method usually follows the call super pattern. The components affected by this commit should not their behavior (except the additional check on the required Data) --- src/Cosserat/engine/PointsManager.inl | 2 ++ src/Cosserat/mapping/BaseCosserat.inl | 2 ++ src/Cosserat/mapping/ProjectionEngine.inl | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Cosserat/engine/PointsManager.inl b/src/Cosserat/engine/PointsManager.inl index 71754de8..0279c2e3 100755 --- a/src/Cosserat/engine/PointsManager.inl +++ b/src/Cosserat/engine/PointsManager.inl @@ -20,6 +20,8 @@ namespace sofa::core::behavior void PointsManager::init() { + Inherit1::init(); + if (getTopology() == NULL) msg_error() << "Error cannot find the topology"; diff --git a/src/Cosserat/mapping/BaseCosserat.inl b/src/Cosserat/mapping/BaseCosserat.inl index c43bf5c4..98af63d1 100644 --- a/src/Cosserat/mapping/BaseCosserat.inl +++ b/src/Cosserat/mapping/BaseCosserat.inl @@ -59,6 +59,8 @@ BaseCosserat::BaseCosserat() template void BaseCosserat::init() { + Inherit1::init(); + // Fill the initial vector const OutDataVecCoord* xfromData = m_toModel->read(core::ConstVecCoordId::position()); const OutVecCoord xfrom = xfromData->getValue(); diff --git a/src/Cosserat/mapping/ProjectionEngine.inl b/src/Cosserat/mapping/ProjectionEngine.inl index 132f9bd4..ded0d845 100644 --- a/src/Cosserat/mapping/ProjectionEngine.inl +++ b/src/Cosserat/mapping/ProjectionEngine.inl @@ -52,10 +52,11 @@ ProjectionEngine::ProjectionEngine() template void ProjectionEngine::init() { - printf ("<====================================> \n"); addInput(&d_from); addInput(&d_dest); addOutput(&d_output); + + Inherit1::init(); } template