Fix bug where recoloring certain grey colors slightly would make them extremely saturated
@@ -1028,7 +1028,7 @@ def color_exchange(image, base_color, replacement_color, mask_path=None, validat
if s == 0:
# Prevent issues when recoloring black/white/grey parts of a texture where the base color is not black/white/grey.
- s = 100
+ s = base_s
new_h = replacement_h
new_s = s + s_change
