Skip to content

Commit fe21a1e

Browse files
committed
Merge pull request cocos2d#2266 from VisualSJ/5939
Issue #5939: LabelAtlas._cascadeOpacityEnabled is false
2 parents 83a8d4b + 6af984e commit fe21a1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cocos2d/labels/CCLabelAtlas.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ cc.LabelAtlas = cc.AtlasNode.extend(/** @lends cc.LabelAtlas# */{
7373
ctor: function (strText, charMapFile, itemWidth, itemHeight, startCharMap) {
7474
cc.AtlasNode.prototype.ctor.call(this);
7575

76+
this._cascadeOpacityEnabled = true;
77+
this._cascadeColorEnabled = true;
78+
7679
charMapFile && cc.LabelAtlas.prototype.initWithString.call(this, strText, charMapFile, itemWidth, itemHeight, startCharMap);
7780
},
7881

0 commit comments

Comments
 (0)