mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
add id to block execute cache data
This commit is contained in:
parent
418c3837c6
commit
e0ec1ad08f
1 changed files with 2 additions and 0 deletions
|
@ -981,6 +981,7 @@ BlocksExecuteCache.getCached = function (blocks, blockId, CacheType) {
|
|||
|
||||
if (typeof CacheType === 'undefined') {
|
||||
cached = {
|
||||
id: blockId,
|
||||
opcode: blocks.getOpcode(block),
|
||||
fields: blocks.getFields(block),
|
||||
inputs: blocks.getInputs(block),
|
||||
|
@ -988,6 +989,7 @@ BlocksExecuteCache.getCached = function (blocks, blockId, CacheType) {
|
|||
};
|
||||
} else {
|
||||
cached = new CacheType(blocks, {
|
||||
id: blockId,
|
||||
opcode: blocks.getOpcode(block),
|
||||
fields: blocks.getFields(block),
|
||||
inputs: blocks.getInputs(block),
|
||||
|
|
Loading…
Reference in a new issue