From fad41bd27ba9b576e6d5d51cd9d3c058f6b24385 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 7 Nov 2020 23:03:37 +0200 Subject: [PATCH] Fix Hue Shifting not working on exported builds --- src/Tools/LightenDarken.gd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Tools/LightenDarken.gd b/src/Tools/LightenDarken.gd index 05181b08a..5c0c7ea04 100644 --- a/src/Tools/LightenDarken.gd +++ b/src/Tools/LightenDarken.gd @@ -35,13 +35,13 @@ class LightenDarkenOp extends Drawer.ColorOp: dst = dst.darkened(-strength) else: if lighten_or_darken == LightenDarken.LIGHTEN: - dst.h += (hue_amount / 359) - dst.s -= (sat_amount / 100) - dst.v += (value_amount / 100) + dst.h += (hue_amount / 359.0) + dst.s -= (sat_amount / 100.0) + dst.v += (value_amount / 100.0) else: - dst.h -= (hue_amount / 359) - dst.s += (sat_amount / 100) - dst.v -= (value_amount / 100) + dst.h -= (hue_amount / 359.0) + dst.s += (sat_amount / 100.0) + dst.v -= (value_amount / 100.0) return dst