From a7c6f4f56e5aa0cbc6a05037f6918b390cb864b1 Mon Sep 17 00:00:00 2001 From: Juha Jeronen Date: Sat, 6 Jan 2024 02:09:34 +0200 Subject: [PATCH] refresh live char when a new talkinghead image is uploaded --- public/scripts/extensions/expressions/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index 2352f071c..f561b9b54 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -1265,6 +1265,11 @@ async function onClickExpressionUpload(event) { // Reset the input 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')