Browse Source

Set default value for ViewerCore::rotation_type

Fix a complaint from Valgrind.
Zhongshi 6 years ago
parent
commit
92f26006cd
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