summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-03-11 02:38:11 -0700
committerViraj Mahesh <virajmahesh@gmail.com>2014-03-11 02:38:11 -0700
commita7a1b54244c91d247511309cddfc9c4c4d895a80 (patch)
treea09a46ff03163aca8e5a8b8c8880d78e95feb566 /objects.js
parent0795c1f44ca2c6a40e6c21eeb550a577fbef0e63 (diff)
downloadsnap-byow-a7a1b54244c91d247511309cddfc9c4c4d895a80.tar.gz
snap-byow-a7a1b54244c91d247511309cddfc9c4c4d895a80.zip
Option of switching between pen trails and stage image has been implemented
Stage saves pen trails too
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/objects.js b/objects.js
index 5d3237e..52abac1 100644
--- a/objects.js
+++ b/objects.js
@@ -3717,11 +3717,11 @@ SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
this.screenshotNames[data] = 0;
}
if (imgSource[0] === "pen trails") {
- canvas = stage.penTrails();
+ canvas = stage.trailsCanvas;
} else if (imgSource[0] === "stage image") {
canvas = stage.fullImageClassic();
}
- costume = new Costume(canvas, data);
+ costume = new Costume(canvas, data).copy();
this.addCostume(costume);
};