From 43b5e0c3a00a9672c88ed656ec2a9afdbcda4874 Mon Sep 17 00:00:00 2001 From: SmallMain Date: Wed, 6 Jul 2022 16:00:10 +0800 Subject: [PATCH] =?UTF-8?q?[engine]=20=E4=BF=AE=E5=A4=8D=20bitmap=20cachem?= =?UTF-8?q?ode=20label=20hash=20=E8=AE=A1=E7=AE=97=E6=9C=AA=E8=80=83?= =?UTF-8?q?=E8=99=91=20color=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/cocos2d/core/renderer/utils/label/ttf.js | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/cocos2d/core/renderer/utils/label/ttf.js b/engine/cocos2d/core/renderer/utils/label/ttf.js index 204c1015..2eafce56 100644 --- a/engine/cocos2d/core/renderer/utils/label/ttf.js +++ b/engine/cocos2d/core/renderer/utils/label/ttf.js @@ -387,6 +387,7 @@ export default class TTFAssembler extends Assembler2D { frame._texture._uuid = _fontDesc + _overflow + (_premultiply ? 'P' : 'NP') + + comp.node.color.toHEX() + (_enableUnderline ? 'UL' : 'NUL') + _string;