mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Map costumeName -> costumenumbername [name]
...instead of mapping to a new obsolete/hidden block 'costumename'. Thanks to @kchadha for helping with this!
This commit is contained in:
parent
93d6b23772
commit
24c6338302
2 changed files with 7 additions and 1 deletions
|
@ -954,6 +954,12 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
|
||||||
value: 'number'
|
value: 'number'
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
case 'costumeName':
|
||||||
|
activeBlock.fields.NUMBER_NAME = {
|
||||||
|
name: 'NUMBER_NAME',
|
||||||
|
value: 'name'
|
||||||
|
};
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special cases to generate mutations.
|
// Special cases to generate mutations.
|
||||||
|
|
|
@ -429,7 +429,7 @@ const specMap = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'costumeName': {
|
'costumeName': {
|
||||||
opcode: 'looks_costumename',
|
opcode: 'looks_costumenumbername',
|
||||||
argMap: [
|
argMap: [
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue