Selaa lähdekoodia

fix for all examples

Former-commit-id: c5d5b62d23b6f95f6fd0ea1682d17b0e3629a149
Daniele Panozzo 11 vuotta sitten
vanhempi
commit
76ee06b0aa
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      include/igl/viewer/Viewer.cpp

+ 2 - 0
include/igl/viewer/Viewer.cpp

@@ -956,6 +956,8 @@ namespace igl
     if (filename.size() > 0)
       load_mesh_from_file(filename.c_str());
 
+    core.align_camera_center(data.V,data.F);
+
     // Rendering loop
     while (!glfwWindowShouldClose(window))
     {