Browse Source

Fix regression in face blush toggles doing nothing

A logic error was introduced in 253c3cb749 that incorrectly sets the
blend limit incorrectly for certain blush blend values.
habeebweeb 4 years ago
parent
commit
9c2f100f3c

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/GUI/Panes/FaceWindowPanes/MaidFaceSliderPane.cs

@@ -178,7 +178,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
 
         private void SetFaceValue(string key, bool value)
         {
-            float max = key.StartsWith("hoho") ? 0.5f : 1f;
+            float max = (key == "hoho" || key == "hoho2") ? 0.5f : 1f;
             if (key == "toothoff") value = !value;
             SetFaceValue(key, value ? max : 0f);
         }