Remove extra calls to set_face_based (#2253)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user