diff --git a/interface/resources/qml/hifi/SkyboxChanger.qml b/interface/resources/qml/hifi/SkyboxChanger.qml index d6cfa91988..f0c97a11a3 100644 --- a/interface/resources/qml/hifi/SkyboxChanger.qml +++ b/interface/resources/qml/hifi/SkyboxChanger.qml @@ -39,7 +39,8 @@ Item { function sortSkyboxes(response) { var arr = JSON.parse(response); - for (var i = 0; i < arr.length; i++) { + var arrLength = arr.length; + for (var i = 0; i < arrLength; i++) { defaultThumbnails.push(arr[i].thumb); defaultFulls.push(arr[i].full); skyboxModel.append({}); @@ -101,7 +102,6 @@ Item { anchors.topMargin: 20 anchors.horizontalCenter: parent.horizontalCenter width: 400 - //height: parent.height anchors.bottom: parent.bottom currentIndex: -1 cellWidth: 200