Merge pull request #1251 from BruegelN/fix-dirty-flag-ViewerData.set_color

set dirty flags for specular and ambient too inside igl::opengl::ViewerData::set_colors().
This commit is contained in:
Jérémie Dumas
2019-07-28 10:04:07 -07:00
committed by GitHub
+1 -1
View File
@@ -209,7 +209,7 @@ IGL_INLINE void igl::opengl::ViewerData::set_colors(const Eigen::MatrixXd &C)
}
else
cerr << "ERROR (set_colors): Please provide a single color, or a color per face or per vertex."<<endl;
dirty |= MeshGL::DIRTY_DIFFUSE;
dirty |= MeshGL::DIRTY_DIFFUSE | MeshGL::DIRTY_SPECULAR | MeshGL::DIRTY_AMBIENT;
}