kopia lustrzana https://github.com/backface/turtlestitch
Put back the accidentally deleted words
Added comment explaining why copy is necessary Copy is only created for pen trailspull/3/merge
rodzic
7f42be8585
commit
e1c74e75f3
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue