瀏覽代碼

Merge pull request #1318 from libigl/jiangzhongshi-patch-3

Set default value for ViewerCore::rotation_type
Jérémie Dumas 6 年之前
父節點
當前提交
3eb0d1c670
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/opengl/ViewerCore.h

+ 1 - 1
include/igl/opengl/ViewerCore.h

@@ -117,7 +117,7 @@ public:
   Eigen::Vector3f light_position;
   Eigen::Vector3f light_position;
   float lighting_factor;
   float lighting_factor;
 
 
-  RotationType rotation_type;
+  RotationType rotation_type = RotationType::ROTATION_TYPE_TRACKBALL;
   Eigen::Quaternionf trackball_angle;
   Eigen::Quaternionf trackball_angle;
 
 
   // Camera parameters
   // Camera parameters