Skip to content

Commit

Permalink
Merge pull request #130 from fredroy/fix_displayflags
Browse files Browse the repository at this point in the history
[Imgui] Fix Display Flags
  • Loading branch information
hugtalbot authored Aug 12, 2024
2 parents bd6259a + b05f376 commit 676aeb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SofaImGui/src/SofaImGui/windows/DisplayFlags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ namespace windows
{
sofa::component::visual::VisualStyle::SPtr visualStyle = nullptr;
groot->get(visualStyle);

if (visualStyle)
{
auto& displayFlags = sofa::helper::getWriteAccessor(visualStyle->displayFlags).wref();
auto& displayFlags = sofa::helper::getWriteAccessor(visualStyle->d_displayFlags).wref();

{
const bool initialValue = displayFlags.getShowVisualModels();
Expand Down

0 comments on commit 676aeb0

Please sign in to comment.