|
@@ -40,7 +40,7 @@ cc.Class({
|
|
|
url: data.url, type: 'jpg'
|
|
|
}, (err, texture) => {
|
|
|
if (err === undefined || err === null) {
|
|
|
- success(new cc.SpriteFrame(texture));
|
|
|
+ this.avatar.spriteFrame = new cc.SpriteFrame(texture);
|
|
|
} else {
|
|
|
cc.loader.loadRes('./textures/default_avatar', cc.SpriteFrame, (err, spriteFrame) => {
|
|
|
success(spriteFrame);
|