From 41a3309cbe8c1b1c86e11ecf3949ae135cec8016 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Sun, 19 Feb 2023 15:59:20 -0800 Subject: [PATCH] Fix the toggling of image modifiers The toggling of image modifiers doesn't get properly applied if weights are changed after restoring the image modifiers. --- ui/plugins/ui/modifiers-toggle.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/plugins/ui/modifiers-toggle.plugin.js b/ui/plugins/ui/modifiers-toggle.plugin.js index e7416164..14eb5627 100644 --- a/ui/plugins/ui/modifiers-toggle.plugin.js +++ b/ui/plugins/ui/modifiers-toggle.plugin.js @@ -40,7 +40,7 @@ // refresh activeTags let modifierName = i.parentElement.getElementsByClassName('modifier-card-label')[0].getElementsByTagName("p")[0].dataset.fullName activeTags = activeTags.map(obj => { - if (obj.name === modifierName) { + if (trimModifiers(obj.name) === trimModifiers(modifierName)) { return {...obj, inactive: (obj.element.classList.contains('modifier-toggle-inactive'))}; }