File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323#include " PythonEnvironment.h"
2424using sofapython3::PythonEnvironment;
2525
26+ #include < SofaPython3/initModule.h>
27+
2628#include < sofa/core/init.h>
2729#include < sofa/defaulttype/init.h>
2830#include < sofa/simulation/init.h>
@@ -44,11 +46,11 @@ void initExternalModule()
4446 static bool first = true ;
4547 if (first)
4648 {
47- sofa::core ::init ();
49+ sofa::helper ::init ();
4850 sofa::defaulttype::init ();
51+ sofa::core::init ();
4952 sofa::simulation::core::init ();
5053 sofa::simulation::graph::init ();
51- sofa::helper::init ();
5254
5355 PythonEnvironment::Init ();
5456 first = false ;
@@ -87,3 +89,11 @@ bool moduleIsInitialized()
8789}
8890
8991}
92+
93+ namespace sofapython3
94+ {
95+ void init ()
96+ {
97+ initExternalModule ();
98+ }
99+ }
Original file line number Diff line number Diff line change 2222
2323#include < SofaPython3/config.h>
2424
25-
25+ namespace sofapython3
26+ {
27+ SOFAPYTHON3_API void init ();
28+ }
You can’t perform that action at this time.
0 commit comments