From 7b8c2a99c4693f5305d0649bedf9dbc9ab9033ca Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Thu, 28 May 2020 14:11:27 +0900 Subject: [PATCH] Set graphic effect to zero if it's Infinity --- src/blocks/scratch3_looks.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blocks/scratch3_looks.js b/src/blocks/scratch3_looks.js index 3be4fcfc5..3428a9a7d 100644 --- a/src/blocks/scratch3_looks.js +++ b/src/blocks/scratch3_looks.js @@ -509,6 +509,8 @@ class Scratch3LooksBlocks { Scratch3LooksBlocks.EFFECT_BRIGHTNESS_LIMIT.min, Scratch3LooksBlocks.EFFECT_BRIGHTNESS_LIMIT.max); break; + default: + clampedValue = isFinite(clampedValue) ? clampedValue : 0; } return clampedValue; }