[{"Owner":"JohnK","Date":"2018-02-27T14:05:24Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tIs the following correct or is there a better way of adding vertex colors to a mesh?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tWhen you have a mesh with `mesh..getVerticesData(BABYLON.VertexBuffer.ColorKind)` returning null then you cannot use _t_updateVerticesData_t_ since there in no colorKind array to update as exampled in _lt_a href_eq__qt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tSo to add vertex colors you need to copy the mesh data and create a new mesh with vertex colors and dispose of the original as in _lt_a href_eq__qt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ%231_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ#1_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Gijs","Date":"2018-02-27T15:40:01Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYou can use setVerticesData_dd_ _lt_a href_eq__qt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ%232_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//www.babylonjs-playground.com/#ZRZIIZ#2_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"JohnK","Date":"2018-02-27T22:01:13Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\t_lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/22401-gijs/?do_eq_hovercard_qt_ data-mentionid_eq__qt_22401_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/22401-gijs/_qt_ rel_eq__qt__qt__gt_@Gijs_lt_/a_gt_ knew there had to be a better way\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]