summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-03-11 13:20:19 -0700
committerViraj Mahesh <virajmahesh@gmail.com>2014-03-11 13:20:19 -0700
commite1c74e75f3581240fe528e910331f0068471f810 (patch)
tree995067a59d31d338b7ef31c87a89d0ea0c14b5e2 /objects.js
parent7f42be8585bdbcab6e4f2d9d6bae9a4337e43940 (diff)
downloadsnap-yow-e1c74e75f3581240fe528e910331f0068471f810.tar.gz
snap-yow-e1c74e75f3581240fe528e910331f0068471f810.zip
Put back the accidentally deleted words
Added comment explaining why copy is necessary Copy is only created for pen trails
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/objects.js b/objects.js
index 0a30ab7..2f4419b 100644
--- a/objects.js
+++ b/objects.js
@@ -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,