mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Fix label blend issue when switch from ttf to bmf (#3094)
This commit is contained in:
@@ -563,6 +563,9 @@ let Label = cc.Class({
|
||||
if (this._texture === this._ttfTexture) {
|
||||
this._srcBlendFactor = cc.macro.ONE;
|
||||
}
|
||||
else {
|
||||
this._srcBlendFactor = cc.macro.SRC_ALPHA;
|
||||
}
|
||||
material.texture = this._texture;
|
||||
this._updateMaterial(material);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user