Fix hotReloadTextures issue with cape setting

This commit is contained in:
Hacksore 2018-10-28 17:02:32 -05:00
parent bea60c3d85
commit 8993135604
1 changed files with 7 additions and 7 deletions

View File

@ -53,18 +53,18 @@ function initSkinViewer() {
function hotReloadTextures() { function hotReloadTextures() {
var capeObject = skinViewer.playerObject.cape; var capeObject = skinViewer.playerObject.cape;
var cape = el('cape_url').value; var capeUrl = el('cape_url').value;
var skin = el('skin_url').value; var skinUrl = el('skin_url').value;
// I've noted there is not a good way to set the cape to null // I've noted there is not a good way to set the cape to null
// so we hide it as work around // so we hide it as work around but need to raise an issue
if (cape === "") { if (capeUrl === "") {
capeObject.visible = false; capeObject.visible = false;
return; } else {
skinViewer.capeUrl = capeUrl;
} }
skinViewer.skinUrl = skin; skinViewer.skinUrl = skinUrl;
skinViewer.capeUrl = cape;
} }
function resizeSkinViewer() { function resizeSkinViewer() {