From 4ae5d4a9afbc4c1740f0ec4625d6bd21ffcba07e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 24 Feb 2022 09:55:40 +0100 Subject: [PATCH] change name --- stitchcode/gui.js | 4 ++-- stitchcode/objects.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stitchcode/gui.js b/stitchcode/gui.js index 6b4466e7..c589e62e 100644 --- a/stitchcode/gui.js +++ b/stitchcode/gui.js @@ -2953,10 +2953,10 @@ IDE_Morph.prototype.droppedImage = function (aCanvas, name) { ); return; } - this.loadAsBackgroundOrData(costume) + this.loadAsBackgroundOrData(costume, name) } -IDE_Morph.prototype.loadAsBackgroundOrData = function (costume) { +IDE_Morph.prototype.loadAsBackgroundOrData = function (costume, name) { var myself = this; var stage = this.stage; var dlg, world = this.world(); diff --git a/stitchcode/objects.js b/stitchcode/objects.js index e03493fe..f5bb7b43 100644 --- a/stitchcode/objects.js +++ b/stitchcode/objects.js @@ -3291,7 +3291,7 @@ StageMorph.prototype.loadCameraSnapshot = function() { sprite, nop, costume => { - ide.loadAsBackgroundOrData(costume) + ide.loadAsBackgroundOrData(costume, 'snapshot') }); camDialog.key = 'camera';