Skip to content

Commit 9c846be

Browse files
bakpaulhugtalbot
andauthored
Fix signature loadFile in ImGuiGUIEngine (sofa-framework#220)
* Fix missing argument * esthetic change --------- Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
1 parent 576d992 commit 9c846be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SofaImGui/src/SofaImGui/ImGuiGUIEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ void ImGuiGUIEngine::startFrame(sofaglfw::SofaGLFWBaseGUI* baseGUI)
636636
if (ImGui::Button(ICON_FA_ROTATE_RIGHT))
637637
{
638638
groot->setTime(0.);
639-
loadFile(baseGUI, groot, baseGUI->getFilename());
639+
loadFile(baseGUI, groot, baseGUI->getFilename(), true);
640640
}
641641

642642
const auto posX = ImGui::GetCursorPosX();

SofaImGui/src/SofaImGui/ImGuiGUIEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ImGuiGUIEngine : public sofaglfw::BaseGUIEngine
7373
std::pair<float, float> m_viewportWindowSize;
7474
bool isMouseOnViewport { false };
7575
CSimpleIniA ini;
76-
void loadFile(sofaglfw::SofaGLFWBaseGUI* baseGUI, sofa::core::sptr<sofa::simulation::Node>& groot, std::string filePathName, bool reload);
76+
void loadFile(sofaglfw::SofaGLFWBaseGUI* baseGUI, sofa::core::sptr<sofa::simulation::Node>& groot, std::string filePathName, bool reload = false);
7777
void resetView(ImGuiID dockspace_id, const char *windowNameSceneGraph, const char *windowNameLog, const char *windowNameViewport) ;
7878

7979
// WindowState members

0 commit comments

Comments
 (0)