diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-02-25 17:34:31 -0800 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-02-25 17:34:31 -0800 |
| commit | e889dc224e68a634e1ecfc64d39f5b5432c4322e (patch) | |
| tree | b97bca4411171eb6374eea5d038d8ee2229e7345 | |
| parent | 341d27092e3381d15f8d2c041de8dbd9ec61a29b (diff) | |
| download | snap-e889dc224e68a634e1ecfc64d39f5b5432c4322e.tar.gz snap-e889dc224e68a634e1ecfc64d39f5b5432c4322e.zip | |
Fixed errors that arose from not using fullImageClassic()
| -rw-r--r-- | objects.js | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3703,12 +3703,11 @@ SpriteMorph.prototype.reactToDropOf = function (morph, hand) { }; SpriteMorph.prototype.doScreenshot = function() { - console.log('Testing screenshot'); - var parent = this.parentThatIsA(StageMorph); - var image = parent.fullImageClassic(); + var stage = this.parentThatIsA(StageMorph); + var canvas = stage.fullImageClassic(); var ide = this.parentThatIsA(IDE_Morph); - var costume = new Costume(image); - ide.currentSprite.addCostume(image); + var costume = new Costume(canvas, ""); + ide.currentSprite.addCostume(costume); }; // SpriteHighlightMorph ///////////////////////////////////////////////// |
