mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
minor fixed
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user