Browse Source

Revert "Set default value for ViewerCore::rotation_type" (#1319)

* Revert "Set default value for ViewerCore::rotation_type"

* More initialization to constructor.

* Update ViewerCore.cpp
Alec Jacobson 6 years ago
parent
commit
9c049ec9be
2 changed files with 2 additions and 1 deletions
  1. 1 0
      include/igl/opengl/ViewerCore.cpp
  2. 1 1
      include/igl/opengl/ViewerCore.h

+ 1 - 0
include/igl/opengl/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

+ 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_TRACKBALL;
+  RotationType rotation_type;
   Eigen::Quaternionf trackball_angle;
 
   // Camera parameters