From e1c74e75f3581240fe528e910331f0068471f810 Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Tue, 11 Mar 2014 13:20:19 -0700 Subject: Put back the accidentally deleted words Added comment explaining why copy is necessary Copy is only created for pen trails --- objects.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'objects.js') 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, -- cgit v1.3.1