Browse Source

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

Set default value for ViewerCore::rotation_type
Jérémie Dumas 6 years ago
parent
commit
3eb0d1c670
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/ViewerCore.h

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

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