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