Browse Source

set dirty flags for specular and ambient too inside igl::opengl::ViewerData::set_colors().

BruegelN 6 years ago
parent
commit
0dfaf2a32c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/ViewerData.cpp

+ 1 - 1
include/igl/opengl/ViewerData.cpp

@@ -209,7 +209,7 @@ IGL_INLINE void igl::opengl::ViewerData::set_colors(const Eigen::MatrixXd &C)
   }
   }
   else
   else
     cerr << "ERROR (set_colors): Please provide a single color, or a color per face or per vertex."<<endl;
     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;
 
 
 }
 }