Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Nov 16, 2023
1 parent 63d4a01 commit f1e7d54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SofaImGui/bindings/Module_SofaImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <pybind11/pybind11.h>

#include <SofaImgui/init.h>
#include <SofaImGui/init.h>


namespace py { using namespace pybind11; }
Expand Down
7 changes: 5 additions & 2 deletions SofaImGui/src/SofaImGui/ImGuiGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ sofa::gui::common::BaseGUI* ImGuiGUI::CreateGUI(const char* name, sofa::simulati
{
return nullptr;
}

gui->setScene(groot, filename);

if(groot)
{
gui->setScene(groot, filename);
}

return gui;
}
Expand Down

0 comments on commit f1e7d54

Please sign in to comment.