Skip to content

Commit

Permalink
[SofaComponentAll] Improve initExternalModule
Browse files Browse the repository at this point in the history
  • Loading branch information
guparan committed Oct 17, 2019
1 parent da8340d commit 7511da0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions applications/collections/SofaComponentAll/initComponentAll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,18 @@ extern "C" {
void initExternalModule()
{
static bool first = true;
if (first)
{
first = false;
}
if(!first) return;
first = false;

/// TODO: remove SofaAllCommonComponents backward compatibility at SOFA v20.06
#ifdef SOFACOMPONENTALL_USING_DEPRECATED_NAME
msg_deprecated("SofaAllCommonComponents") << "This plugin was renamed into SofaComponentAll. Backward compatiblity will be stopped at SOFA v20.06";
#else
sofa::component::initComponentBase();
sofa::component::initComponentCommon();
sofa::component::initComponentGeneral();
sofa::component::initComponentAdvanced();
sofa::component::initComponentMisc();

/// TODO: remove SofaAllCommonComponents backward compatibility at SOFA v20.06
#ifdef SOFACOMPONENTALL_USING_DEPRECATED_NAME
msg_deprecated("SofaAllCommonComponents") << "This plugin was renamed into SofaComponentAll. Backward compatiblity will be stopped at SOFA v20.06";
#endif
}

Expand Down

0 comments on commit 7511da0

Please sign in to comment.