Browse Source

Fix dirty flag for ViewerData::set_labels (#1761)

Li Chenchen 4 years ago
parent
commit
3450b44688
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/igl/opengl/ViewerData.cpp

+ 2 - 0
include/igl/opengl/ViewerData.cpp

@@ -445,6 +445,8 @@ IGL_INLINE void igl::opengl::ViewerData::set_labels(const Eigen::MatrixXd& P, co
   assert(P.cols() == 3 && "dimension of label positions incorrect!");
   labels_positions = P;
   labels_strings = str;
+
+  dirty |= MeshGL::DIRTY_CUSTOM_LABELS;
 }
 
 IGL_INLINE void igl::opengl::ViewerData::clear_labels()