From 20add8767f9d590b8bd50d864e886d561ae01cca Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 6 Sep 2021 09:55:14 +0200 Subject: [PATCH] fixed exporting comment pics from inside the block editor, thanks, @jadga-h for the report! --- HISTORY.md | 4 ++++ snap.html | 2 +- src/blocks.js | 6 ++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 2c4b74d6..a778fd68 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -24,6 +24,7 @@ * fixed occasional invisible error messages * fixed audio_comp library "plot sound" block to work with translations, thanks, Hans, for the report! * colors library: fixed SET PEN to work with more than a single sprite per costume, thanks, Jadga, for the report! + * fixed exporting comment pics from inside the block editor, thanks, Jadga, for the report! * **Documentation Updates:** * updated manual, thanks Brian! * updated readme, thanks, Michael! @@ -31,6 +32,9 @@ * German * Chinese, thanks, Simon! +### 2021-09-06 +* blocks: fixed exporting comment pics from inside the block editor, thanks, Jadga, for the report! + ### 2021-08-27 * colors library: fixed SET PEN to work with more than a single sprite per costume, thanks, Jadga, for the report! diff --git a/snap.html b/snap.html index 6f4489a0..c4beb415 100755 --- a/snap.html +++ b/snap.html @@ -16,7 +16,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 9631f068..641b8f43 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -160,7 +160,7 @@ CustomCommandBlockMorph, ToggleButtonMorph, DialMorph, SnapExtensions*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2021-July-21'; +modules.blocks = '2021-September-06'; var SyntaxElementMorph; var BlockMorph; @@ -13309,7 +13309,9 @@ CommentMorph.prototype.userMenu = function () { menu.addItem( "comment pic...", () => { - var ide = this.parentThatIsA(IDE_Morph); + var ide = this.parentThatIsA(IDE_Morph) || + this.parentThatIsA(BlockEditorMorph) + .target.parentThatIsA(IDE_Morph); ide.saveCanvasAs( this.fullImage(), (ide.projectName || localize('untitled')) + ' ' +