mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Set graphic effect to zero if it's Infinity
This commit is contained in:
parent
33e73c3c5c
commit
7b8c2a99c4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue