瀏覽代碼

cleanup

Former-commit-id: 3c9f9381e2a8cb57630ee4689117d5ca21646e51
Daniele Panozzo 10 年之前
父節點
當前提交
ae9cec579d
共有 1 個文件被更改,包括 1 次插入18 次删除
  1. 1 18
      include/igl/viewer/Viewer.cpp

+ 1 - 18
include/igl/viewer/Viewer.cpp

@@ -196,7 +196,7 @@ namespace viewer
     ngui->addVariable(core.camera_zoom,"Zoom");
     ngui->addVariable(core.orthographic,"Orthographic view");
 
-    ngui->addNewGroup("Draw options");
+    ngui->addNewGroup("Draw options",FormScreen::Layout::Vertical);
 
     ngui->addVariable([&](bool checked)
     {
@@ -422,23 +422,6 @@ namespace viewer
 
     char k = key;
 
-    // if(key == GLFW_KEY_S && modifiers == GLFW_MOD_SHIFT)
-    //   mouse_scroll(1);
-    //
-    // if(key == GLFW_KEY_A && modifiers == GLFW_MOD_SHIFT)
-    //   mouse_scroll(-1);
-
-    // // Why aren't these handled via AntTweakBar?
-    // if(key == GLFW_KEY_Z) // Don't use 'Z' because that clobbers snap_to_canonical_view_quat
-    //   core.trackball_angle << 0.0f, 0.0f, 0.0f, 1.0f;
-    //
-    // if(key == GLFW_KEY_Y)
-    //   core.trackball_angle << -sqrt(2.0f)/2.0f, 0.0f, 0.0f, sqrt(2.0f)/2.0f;
-    //
-    // if(key == GLFW_KEY_X)
-    //   core.trackball_angle << -0.5f, -0.5f, -0.5f, 0.5f;
-
-
     return false;
   }