Forráskód Böngészése

Remove extra calls to set_face_based (#2253)

Alec Jacobson 2 éve
szülő
commit
e5e0539e7d
1 módosított fájl, 0 hozzáadás és 2 törlés
  1. 0 2
      include/igl/opengl/ViewerData.cpp

+ 0 - 2
include/igl/opengl/ViewerData.cpp

@@ -231,7 +231,6 @@ IGL_INLINE void igl::opengl::ViewerData::set_uv(const Eigen::MatrixXd& UV)
   using namespace std;
   if (UV.rows() == V.rows())
   {
-    set_face_based(false);
     V_uv = UV;
   }
   else
@@ -241,7 +240,6 @@ IGL_INLINE void igl::opengl::ViewerData::set_uv(const Eigen::MatrixXd& UV)
 
 IGL_INLINE void igl::opengl::ViewerData::set_uv(const Eigen::MatrixXd& UV_V, const Eigen::MatrixXi& UV_F)
 {
-  set_face_based(true);
   V_uv = UV_V.block(0,0,UV_V.rows(),2);
   F_uv = UV_F;
   dirty |= MeshGL::DIRTY_UV;