cocos-enhance-kit/patches/v1.0.0/0014-Char.patch

34 lines
1.3 KiB
Diff
Raw Normal View History

From 44d365d4a46347fb179d12f1f53848deb2c4a336 Mon Sep 17 00:00:00 2001
From: SmallMain <smallmain@outlook.com>
Date: Tue, 21 Jun 2022 22:36:31 +0800
Subject: [PATCH 14/15] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Char=20=E7=BC=93?=
=?UTF-8?q?=E5=AD=98=E6=A8=A1=E5=BC=8F=E7=9A=84=E6=80=A7=E8=83=BD=EF=BC=88?=
=?UTF-8?q?=E7=BA=B9=E7=90=86=E4=B8=8D=E9=9C=80=E8=A6=81=E5=88=A4=E6=96=AD?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E8=A6=81=E8=BF=98=E5=8E=9F=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E5=90=88=E5=9B=BE=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
engine/cocos2d/core/renderer/utils/label/letter-font.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/engine/cocos2d/core/renderer/utils/label/letter-font.js b/engine/cocos2d/core/renderer/utils/label/letter-font.js
index 0e7aaae..5e19af4 100644
--- a/engine/cocos2d/core/renderer/utils/label/letter-font.js
+++ b/engine/cocos2d/core/renderer/utils/label/letter-font.js
@@ -119,7 +119,8 @@ LetterTexture.prototype = {
this._texture.handleLoadedTexture();
},
- destroy () {
+ destroy() {
+ this._texture._packable = false;
this._texture.destroy();
this._texture = null;
Label._canvasPool.put(this._data);
--
2.32.0 (Apple Git-132)