* Revert "Set default value for ViewerCore::rotation_type" * More initialization to constructor. * Update ViewerCore.cpp
@@ -387,6 +387,7 @@ IGL_INLINE igl::opengl::ViewerCore::ViewerCore()
// Default trackball
trackball_angle = Eigen::Quaternionf::Identity();
+ rotation_type == ViewerCore::ROTATION_TYPE_TRACKBALL;
set_rotation_type(ViewerCore::ROTATION_TYPE_TWO_AXIS_VALUATOR_FIXED_UP);
// Camera parameters
@@ -117,7 +117,7 @@ public:
Eigen::Vector3f light_position;
float lighting_factor;
- RotationType rotation_type = RotationType::ROTATION_TYPE_TRACKBALL;
+ RotationType rotation_type;
Eigen::Quaternionf trackball_angle;