mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix richtext bmfont error (#11921)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user