Put back the accidentally deleted words

Added comment explaining why copy is necessary
Copy is only created for pen trails
pull/3/merge
Viraj Mahesh 2014-03-11 13:20:19 -07:00
rodzic 7f42be8585
commit e1c74e75f3
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -3718,10 +3718,11 @@ SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
}
if (imgSource[0] === "pen trails") {
canvas = stage.trailsCanvas;
costume = new Costume(canvas, data).copy(); // Copy is required to prevent mutation
} else if (imgSource[0] === "stage image") {
canvas = stage.fullImageClassic();
costume = new Costume(canvas, data);
}
costume = new Costume(canvas, data).copy();
this.addCostume(costume);
};
@ -4734,7 +4735,7 @@ StageMorph.prototype.userMenu = function () {
if (shiftClicked) {
menu.addLine();
menu.addItem(
" trails into new costume...",
"turn pen trails into new costume...",
function () {
var costume = new Costume(
myself.trailsCanvas,