refresh live char when a new talkinghead image is uploaded

This commit is contained in:
Juha Jeronen 2024-01-06 02:09:34 +02:00
parent 7f4a45a4a3
commit a7c6f4f56e
1 changed files with 5 additions and 0 deletions

View File

@ -1265,6 +1265,11 @@ async function onClickExpressionUpload(event) {
// Reset the input // Reset the input
e.target.form.reset(); e.target.form.reset();
// In talkinghead mode, when a new talkinghead image is uploaded, refresh the live char.
if (extension_settings.expressions.talkinghead && id === "talkinghead") {
await loadLiveChar();
}
}; };
$('#expression_upload') $('#expression_upload')