mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-11 21:11:10 -04:00
Merge pull request #2437 from apple502j/patch-12
Set graphic effect to zero if it's Infinity
This commit is contained in:
commit
b67ba75d8b
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…
Add table
Add a link
Reference in a new issue