瀏覽代碼

rm warning rotation types

Former-commit-id: aeb8afa12937f432cf05e1dd82010f83955ac387
Alec Jacobson 10 年之前
父節點
當前提交
d5e21c2013
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/igl/viewer/Viewer.cpp

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

@@ -544,6 +544,8 @@ namespace viewer
         {
         {
           switch(core.rotation_type)
           switch(core.rotation_type)
           {
           {
+            default:
+              assert(false && "Unknown rotation type");
             case ViewerCore::ROTATION_TYPE_TRACKBALL:
             case ViewerCore::ROTATION_TYPE_TRACKBALL:
               igl::trackball(core.viewport(2),
               igl::trackball(core.viewport(2),
                              core.viewport(3),
                              core.viewport(3),