kopia lustrzana https://github.com/backface/turtlestitch
resolve bug with palette rendering polluting the primitiveCache
rodzic
772da1fd94
commit
e5be75bb56
|
@ -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));
|
||||
|
|
Ładowanie…
Reference in New Issue