Set graphic effect to zero if it's Infinity

This commit is contained in:
apple502j 2020-05-28 14:11:27 +09:00 committed by GitHub
parent 33e73c3c5c
commit 7b8c2a99c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}