resolve bug with palette rendering polluting the primitiveCache

snap7
Michael Ball 2021-06-30 02:57:53 -07:00
rodzic 772da1fd94
commit e5be75bb56
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3098,7 +3098,8 @@ SpriteMorph.prototype.freshPalette = function (category) {
),
[]);
} else {
blocks = this.getPrimitiveTemplates(category);
// ensure we do not modify the cached array
blocks = this.getPrimitiveTemplates(category).slice();
}
blocks.push('=');
blocks.push(this.makeBlockButton(category));