From 8993135604c805a31a50cc2b08b448dae0d59dab Mon Sep 17 00:00:00 2001 From: Hacksore Date: Sun, 28 Oct 2018 17:02:32 -0500 Subject: [PATCH] Fix hotReloadTextures issue with cape setting --- js/example.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/example.js b/js/example.js index 30d05eb..53babdd 100644 --- a/js/example.js +++ b/js/example.js @@ -53,18 +53,18 @@ function initSkinViewer() { function hotReloadTextures() { var capeObject = skinViewer.playerObject.cape; - var cape = el('cape_url').value; - var skin = el('skin_url').value; + var capeUrl = el('cape_url').value; + var skinUrl = el('skin_url').value; // I've noted there is not a good way to set the cape to null - // so we hide it as work around - if (cape === "") { + // so we hide it as work around but need to raise an issue + if (capeUrl === "") { capeObject.visible = false; - return; + } else { + skinViewer.capeUrl = capeUrl; } - skinViewer.skinUrl = skin; - skinViewer.capeUrl = cape; + skinViewer.skinUrl = skinUrl; } function resizeSkinViewer() {