mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-04 01:24:58 -04:00
Merge de8ebaefb1
into f207757ef0
This commit is contained in:
commit
7da77cdb46
1 changed files with 3 additions and 1 deletions
|
@ -862,7 +862,9 @@ class Blocks {
|
|||
|
||||
// Is this block a top-level block?
|
||||
if (typeof e.newParent === 'undefined') {
|
||||
this._addScript(e.id);
|
||||
if (!this._blocks[e.id].shadow) {
|
||||
this._addScript(e.id);
|
||||
}
|
||||
} else {
|
||||
// Remove script, if one exists.
|
||||
this._deleteScript(e.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue