Skip to content

Commit e47c8b5

Browse files
authored
Set priotity to force Imgui as the default GUI (#149)
1 parent 98d4a28 commit e47c8b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SofaGLFW/src/SofaGLFW/initSofaGLFW.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void initExternalModule()
4747
{
4848
first = false;
4949
#if SOFAGLFW_HAVE_SOFA_GUI_COMMON
50-
sofa::gui::common::GUIManager::RegisterGUI("glfw", &sofaglfw::SofaGLFWGUI::CreateGUI);
50+
sofa::gui::common::GUIManager::RegisterGUI("glfw", &sofaglfw::SofaGLFWGUI::CreateGUI,nullptr,0);
5151
#endif // SOFAGLFW_HAVE_SOFA_GUI_COMMON
5252
}
5353
}

SofaImGui/src/SofaImGui/initSofaImGui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void initExternalModule()
4848
sofa::helper::logging::MessageDispatcher::addHandler(&sofa::helper::logging::MainLoggingMessageHandler::getInstance());
4949
sofa::helper::logging::MainLoggingMessageHandler::getInstance().activate();
5050

51-
sofa::gui::common::GUIManager::RegisterGUI("imgui", &sofaimgui::ImGuiGUI::CreateGUI);
51+
sofa::gui::common::GUIManager::RegisterGUI("imgui", &sofaimgui::ImGuiGUI::CreateGUI,nullptr,1);
5252
}
5353
}
5454

0 commit comments

Comments
 (0)