mirror of
https://github.com/Buriburizaem0n/live2d.git
synced 2025-12-17 00:21:06 +00:00
fixed error
This commit is contained in:
@@ -243,7 +243,7 @@ function loadWidget() {
|
|||||||
async function loadNextModel() {
|
async function loadNextModel() {
|
||||||
let modelId = localStorage.getItem("modelId");
|
let modelId = localStorage.getItem("modelId");
|
||||||
if (!modelList) await loadModelList();
|
if (!modelList) await loadModelList();
|
||||||
let index = (++modelId >= modelList.models.length) ? 0 : modelId;
|
let index = (++modelId >= modelList.models_json_path.length) ? 0 : modelId;
|
||||||
loadModel(index, 0, modelList.messages[index]);
|
loadModel(index, 0, modelList.messages[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user