fixed “fill” block crash when applying the same color twice
upd4.1
Jens Mönig 2017-08-30 08:58:05 +02:00
rodzic 4bea32a5e8
commit 7dd9ecb755
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -3598,6 +3598,7 @@ Fixes:
------
* Blocks, Threads: Confine programmatically setting the “temporary?” attribute to dev mode
* BYOB: enable exporting script pics of custom blocks in the newest Chrome version, which disables opening tabs on dataURLs
* Objects: fixed #1843
Features:
@ -3632,4 +3633,5 @@ Fixes:
* changed direction attribute of sprites to automatically confine to 0-360 degrees
* fixed rotation-bug when flipping costumes in "only turn left/right" mode"
* fixed variable renaming (“refactoring”) bugs, thanks, Bernat!
* fixed “fill” block crash when applying the same color twice
* fixed some typos

Wyświetl plik

@ -82,7 +82,7 @@ SpeechBubbleMorph, RingMorph, isNil, FileReader, TableDialogMorph,
BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize,
TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph*/
modules.objects = '2017-August-29';
modules.objects = '2017-August-30';
var SpriteMorph;
var StageMorph;
@ -4192,7 +4192,7 @@ SpriteMorph.prototype.floodFill = function () {
if (src[0] === Math.round(this.color.r) &&
src[1] === Math.round(this.color.g) &&
src[2] === Math.round(this.color.b) &&
src[3] === Math.round(this.color.a * 255)) {
src[3] === Math.round(this.color.a)) {
return;
}
while (stack.length > 0) {