|
@@ -179,19 +179,30 @@ export default class XAvatarManager {
|
|
|
status: a
|
|
|
});
|
|
|
this.registerAvatar(u);
|
|
|
- if (r == 0)
|
|
|
- this.setMainAvatar(u.id),
|
|
|
- this.addAvatarToScene(u, 0).then(c=>(logger.debug(`[Engine] avatar ${u.id} has been added to scene`),
|
|
|
- c ? (this._updateBillboardStatus(c, BillboardStatus.SHOW),
|
|
|
- setTimeout(()=>{
|
|
|
- this.launchProcessLoadingLoop()
|
|
|
- }
|
|
|
- , this._delayTime),
|
|
|
- s(c)) : (u.removeAvatarFromScene(),
|
|
|
- l(new AvatarAssetLoadingError)))).catch(c=>(u.removeAvatarFromScene(),
|
|
|
- l(new AvatarAssetLoadingError(c))));
|
|
|
- else
|
|
|
- return s(u)
|
|
|
+ // if (r == 0)
|
|
|
+ // this.setMainAvatar(u.id),
|
|
|
+ // this.addAvatarToScene(u, 0).then(c=>(logger.debug(`[Engine] avatar ${u.id} has been added to scene`),
|
|
|
+ // c ? (this._updateBillboardStatus(c, BillboardStatus.SHOW),
|
|
|
+ // setTimeout(()=>{
|
|
|
+ // this.launchProcessLoadingLoop()
|
|
|
+ // }
|
|
|
+ // , this._delayTime),
|
|
|
+ // s(c)) : (u.removeAvatarFromScene(),
|
|
|
+ // l(new AvatarAssetLoadingError)))).catch(c=>(u.removeAvatarFromScene(),
|
|
|
+ // l(new AvatarAssetLoadingError(c))));
|
|
|
+ // else
|
|
|
+ // return s(u)
|
|
|
+
|
|
|
+ this.setMainAvatar(u.id),
|
|
|
+ this.addAvatarToScene(u, 0).then(c=>(logger.debug(`[Engine] avatar ${u.id} has been added to scene`),
|
|
|
+ c ? (this._updateBillboardStatus(c, BillboardStatus.SHOW),
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.launchProcessLoadingLoop()
|
|
|
+ }
|
|
|
+ , this._delayTime),
|
|
|
+ s(c)) : (u.removeAvatarFromScene(),
|
|
|
+ l(new AvatarAssetLoadingError)))).catch(c=>(u.removeAvatarFromScene(),
|
|
|
+ l(new AvatarAssetLoadingError(c))));
|
|
|
}
|
|
|
)
|
|
|
}
|