Fix hotReloadTextures issue with cape setting
This commit is contained in:
parent
bea60c3d85
commit
8993135604
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue