summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--objects.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index fb1804e..4b1b359 100644
--- a/objects.js
+++ b/objects.js
@@ -3741,7 +3741,9 @@ SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
stage = this.parentThatIsA(StageMorph),
costume;
data = this.newCostumeName(data);
- //data = this.newCostumeNameCached(data); // Uncomment to profile
+ if (imgSource[0] === undefined) {
+ return;
+ }
if (imgSource[0] === "pen trails") {
canvas = stage.trailsCanvas;
costume = new Costume(canvas, data).copy(); // Copy is required to prevent mutation