fix richtext bmfont error (#11921)

This commit is contained in:
Santy-Wang
2022-07-11 15:37:25 +08:00
committed by GitHub
parent 731d703648
commit ddf0a72fc4
+2 -1
View File
@@ -132,8 +132,9 @@ export const bmfontUtils = {
updateColor (label: Label) {
if (JSB) {
const renderData = label.renderData!;
const vData = renderData.chunk.vb;
const vertexCount = renderData.vertexCount;
if (vertexCount === 0) return;
const vData = renderData.chunk.vb;
const stride = renderData.floatStride;
let colorOffset = 5;
const color = label.color;