diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-03-11 13:20:19 -0700 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-03-11 13:20:19 -0700 |
| commit | e1c74e75f3581240fe528e910331f0068471f810 (patch) | |
| tree | 995067a59d31d338b7ef31c87a89d0ea0c14b5e2 | |
| parent | 7f42be8585bdbcab6e4f2d9d6bae9a4337e43940 (diff) | |
| download | snap-e1c74e75f3581240fe528e910331f0068471f810.tar.gz snap-e1c74e75f3581240fe528e910331f0068471f810.zip | |
Put back the accidentally deleted words
Added comment explaining why copy is necessary
Copy is only created for pen trails
| -rw-r--r-- | objects.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |
