Fix not clearing cape preview when switching players

This commit is contained in:
printempw 2017-06-28 17:23:57 +08:00
parent b7df1b362c
commit fda8d9fd35

View File

@ -276,6 +276,11 @@ var TexturePreview = function (type, tid, preference) {
this.showNotUploaded = function () {
this.selector.hide().parent().next().show();
// clear 3D preview of cape
if (this.type == 'cape') {
MSP.changeCape('');
}
return this;
}
}