fixed #1800. Thanks, Ken, for the bug report!

upd4.1
Jens Mönig 2017-07-12 08:12:36 +02:00
rodzic c78099ada5
commit 10e09ec3f2
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -150,7 +150,7 @@ CustomCommandBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2017-July-04';
modules.blocks = '2017-July-12';
var SyntaxElementMorph;
var BlockMorph;
@ -6683,7 +6683,7 @@ ScriptsMorph.prototype.scriptTarget = function () {
}
editor = this.parentThatIsA(BlockEditorMorph);
if (editor) {
return editor.target.currentSprite;
return editor.target;
}
throw new Error('script target bannot be found for orphaned scripts');
};

Wyświetl plik

@ -3528,6 +3528,11 @@ Fixes:
* Objects: fixed custom block inheritance for traditional Scratch-like clones
* Objects: optimized deleting traditional Scratch-like cones
170712
------
* Blocks: fixed #1800. Thanks, Ken, for the bug report!
Features:
* polymorphic sprite-local custom blocks