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:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user