meh, don't check for static sprite, correctly

This commit is contained in:
Juha Jeronen 2024-01-06 02:17:07 +02:00
parent 2d85d7e1e1
commit d1e9c59e72
1 changed files with 2 additions and 2 deletions

View File

@ -735,12 +735,12 @@ async function setSpriteSlashCommand(_, spriteId) {
}
spriteId = spriteId.trim().toLowerCase();
const currentLastMessage = getLastCharacterMessage();
const spriteFolderName = getSpriteFolderName(currentLastMessage, currentLastMessage.name);
// In talkinghead mode, don't check for the existence of the sprite
// (emotion names are the same as for sprites, but it only needs "talkinghead.png").
if (extension_settings.expressions.local || !extension_settings.expressions.talkinghead) {
const currentLastMessage = getLastCharacterMessage();
const spriteFolderName = getSpriteFolderName(currentLastMessage, currentLastMessage.name);
await validateImages(spriteFolderName);
// Fuzzy search for sprite