From fda8d9fd35f8297b633ddb76dd852eeb522af3fe Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 28 Jun 2017 17:23:57 +0800 Subject: [PATCH] Fix not clearing cape preview when switching players --- resources/assets/src/scripts/general.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/assets/src/scripts/general.js b/resources/assets/src/scripts/general.js index 7c3db483..d30dc253 100644 --- a/resources/assets/src/scripts/general.js +++ b/resources/assets/src/scripts/general.js @@ -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; } }