diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-05-30 09:51:30 +0400 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-05-30 09:51:30 +0400 |
| commit | 7daaf1252a651271f170abc0a7a0f532778aad51 (patch) | |
| tree | cad1101584f7798396c7a1e1c041be485a0ddb94 | |
| parent | 209f05dfffa55832da56a7cb4a53d23bd97ce7c4 (diff) | |
| download | snap-yow-7daaf1252a651271f170abc0a7a0f532778aad51.tar.gz snap-yow-7daaf1252a651271f170abc0a7a0f532778aad51.zip | |
Do nothing when blank action passed
| -rw-r--r-- | objects.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
