Remove extra calls to set_face_based (#2253)

This commit is contained in:
Alec Jacobson
2023-08-25 10:40:33 -04:00
committed by GitHub
parent eee808949e
commit e5e0539e7d
-2
View File
@@ -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;