mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user