Эх сурвалжийг харах

use .any

Former-commit-id: e752918348f5eec4a3889cb4839cc50b17f3faf5
Alec Jacobson 8 жил өмнө
parent
commit
d568e6ce0d

+ 2 - 3
include/igl/opengl2/MouseController.h

@@ -170,7 +170,6 @@ namespace igl
 #include "project.h"
 #include "../forward_kinematics.h"
 #include "../matlab_format.h"
-#include "../any_of.h"
 #include <iostream>
 #include <algorithm>
 #include <functional>
@@ -522,7 +521,7 @@ inline void igl::opengl2::MouseController::set_selection(
   }
 
   // Now selection should contain just bone roots of m_selection subtrees
-  if(any_of(m_selection))
+  if(m_selection.array().any())
   {
     // Taking average 
     Vector3d avg_pos(0,0,0);
@@ -673,7 +672,7 @@ inline void igl::opengl2::MouseController::clear_selection()
 
 inline bool igl::opengl2::MouseController::any_selection() const
 {
-  return igl::any_of(m_selection);
+  return m_selection.array().any();
 }
 
 inline void igl::opengl2::MouseController::set_widget_mode(const WidgetMode & mode)