mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-26 06:10:26 -04:00
Make sure to set comment property of block when creating a new block via XML using the adapter. Update unit tests.
This commit is contained in:
parent
29b79878bc
commit
76b423e481
3 changed files with 33 additions and 0 deletions
src/engine
|
@ -86,6 +86,11 @@ const domToBlock = function (blockDOM, blocks, isTopBlock, parent) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
case 'comment':
|
||||
{
|
||||
block.comment = xmlChild.attribs.id;
|
||||
break;
|
||||
}
|
||||
case 'value':
|
||||
case 'statement':
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue