summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-03-10 22:42:42 -0700
committerViraj Mahesh <virajmahesh@gmail.com>2014-03-10 22:42:42 -0700
commit0795c1f44ca2c6a40e6c21eeb550a577fbef0e63 (patch)
tree638a42fe0517fc289e5bd04f964becd593aa5e38
parent85ebc2369b86efc5e5a6988e74f7a01d1006e9f1 (diff)
downloadsnap-byow-0795c1f44ca2c6a40e6c21eeb550a577fbef0e63.tar.gz
snap-byow-0795c1f44ca2c6a40e6c21eeb550a577fbef0e63.zip
Fixed error where penTrail of sprite was being used instead of penTrail of stage
-rw-r--r--objects.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/objects.js b/objects.js
index 5cb48ee..5d3237e 100644
--- a/objects.js
+++ b/objects.js
@@ -3708,7 +3708,7 @@ SpriteMorph.prototype.reactToDropOf = function (morph, hand) {
SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
var canvas,
- stage,
+ stage = this.parentThatIsA(StageMorph),
costume;
if (this.screenshotNames.hasOwnProperty(data)) { // Screenshot naming
this.screenshotNames[data] += 1;
@@ -3717,9 +3717,8 @@ SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
this.screenshotNames[data] = 0;
}
if (imgSource[0] === "pen trails") {
- canvas = this.trailsCanvas;
+ canvas = stage.penTrails();
} else if (imgSource[0] === "stage image") {
- stage = this.parentThatIsA(StageMorph);
canvas = stage.fullImageClassic();
}
costume = new Costume(canvas, data);
@@ -4735,7 +4734,7 @@ StageMorph.prototype.userMenu = function () {
if (shiftClicked) {
menu.addLine();
menu.addItem(
- "turn pen trails into new costume...",
+ " trails into new costume...",
function () {
var costume = new Costume(
myself.trailsCanvas,