minor fixed

This commit is contained in:
yinkaile
2018-04-18 11:53:22 +08:00
parent abc4b0b5da
commit 2ed79ae029
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -464,6 +464,7 @@ var Sprite = cc.Class({
* @param state {Sprite.State} NORMAL or GRAY State.
*/
setState: function (state) {
if (this._state === state) return;
this._state = state;
this._material = null;
},
@@ -163,6 +163,8 @@ let dynamicAtlasManager = {
layout.resizeMode = cc.Layout.ResizeMode.CONTAINER;
content.parent = _debugNode;
scroll.content = content;
for (let i = 0; i <= _atlasIndex; i++) {
let node = new cc.Node('ATLAS');