diff --git a/Plugin/src/SofaPython3/PythonEnvironment.cpp b/Plugin/src/SofaPython3/PythonEnvironment.cpp index d347e737..ce731767 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.cpp +++ b/Plugin/src/SofaPython3/PythonEnvironment.cpp @@ -289,7 +289,7 @@ void PythonEnvironment::Init() for( const auto& elem : map) { Plugin p = elem.second; - if ( p.getModuleName() == sofa_tostring(SOFA_TARGET) ) + if ( strcmp(p.getModuleName(), sofa_tostring(SOFA_TARGET)) == 0 ) { pluginLibraryPath = elem.first; } diff --git a/Plugin/src/SofaPython3/PythonEnvironment.h b/Plugin/src/SofaPython3/PythonEnvironment.h index 29a4be9e..6820c6d8 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.h +++ b/Plugin/src/SofaPython3/PythonEnvironment.h @@ -119,6 +119,7 @@ class SOFAPYTHON3_API PythonEnvironment /// to be able to react when a scene is loaded struct SceneLoaderListerner : public SceneLoader::Listener { + using SceneLoader::Listener::rightBeforeLoadingScene; /// possibly unload python modules to force importing their eventual modifications virtual void rightBeforeLoadingScene(); static SceneLoaderListerner* getInstance() { diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp index 424db156..dfb1eb65 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp @@ -56,9 +56,6 @@ PYBIND11_MODULE(Simulation, simulation) sofa::simulation::core::init(); sofa::simulation::graph::init(); - if(!sofa::simulation::getSimulation()) - sofa::simulation::setSimulation(new DAGSimulation()); - simulation.doc() =sofapython3::doc::simulation::Class; simulation.def("print", [](Node* n){ sofa::simulation::node::print(n); }, sofapython3::doc::simulation::print);