From 2835130515fe19265efac528b2e94abc39ee66b0 Mon Sep 17 00:00:00 2001 From: Artur Gomes Date: Thu, 17 Aug 2017 15:53:13 +0100 Subject: [PATCH] Fix dynamic hue not cycling through all the 360 hue values when drawing the line due to the change in the max size of the line. --- scripts/system/fingerPaint/fingerPaint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/fingerPaint/fingerPaint.js b/scripts/system/fingerPaint/fingerPaint.js index 4ff26e7cf5..b57fab684e 100644 --- a/scripts/system/fingerPaint/fingerPaint.js +++ b/scripts/system/fingerPaint/fingerPaint.js @@ -123,7 +123,7 @@ var isAnyDynamicEffectEnabled = false; if ("dynamicHue" in _dynamicEffects && _dynamicEffects.dynamicHue) { isAnyDynamicEffectEnabled = true; - var hueIncrement = 359.0 / 70.0; + var hueIncrement = 359.0 / MAX_POINTS_PER_LINE; _dynamicColor.hue = calculateValueInRange(_dynamicColor.hue, 0, 359, hueIncrement); }