Browse Source

Fixes #757.

Former-commit-id: b1d576dba754ddfb22213203a100aacd25d79e07
Jérémie Dumas 6 years ago
parent
commit
9cdf351f6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/glfw/imgui/ImGuiMenu.cpp

+ 1 - 1
include/igl/opengl/glfw/imgui/ImGuiMenu.cpp

@@ -256,7 +256,7 @@ IGL_INLINE void ImGuiMenu::draw_viewer_menu()
   {
     if (ImGui::Checkbox("Face-based", &(viewer->data().face_based)))
     {
-      viewer->data().set_face_based(viewer->data().face_based);
+      viewer->data().dirty = MeshGL::DIRTY_ALL;
     }
     ImGui::Checkbox("Show texture", &(viewer->data().show_texture));
     if (ImGui::Checkbox("Invert normals", &(viewer->data().invert_normals)))