Fix beta issues in Label, Spine and Sprite (#3012)

* Fix label dark border issue

* Secure Skeleton listener setting

* Fix Sprite.setState not working issue

* Fix deprecation message for setDisplayStats
This commit is contained in:
pandamicro
2018-07-24 21:50:44 +08:00
committed by GitHub
parent d6ea17f8f1
commit bfb049e571
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -514,6 +514,9 @@ var Sprite = cc.Class({
material.texture = texture;
this._updateMaterial(material);
}
else if (material !== this._material) {
this._updateMaterial(material);
}
if (this._renderData) {
this._renderData.material = material;
}
+1 -1
View File
@@ -219,7 +219,7 @@ if (CC_DEV) {
getAnimationInterval: 'cc.game.getFrameRate',
setAnimationInterval: 'cc.game.setFrameRate',
isDisplayStats: 'cc.debug.isDisplayStats',
showDisplayStats: 'cc.debug.showDisplayStats',
setDisplayStats: 'cc.debug.setDisplayStats',
}, 'cc.Director');
markAsRemoved(cc.Director, [
'pushScene',