mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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') {
|
if (typeof CacheType === 'undefined') {
|
||||||
cached = {
|
cached = {
|
||||||
|
id: blockId,
|
||||||
opcode: blocks.getOpcode(block),
|
opcode: blocks.getOpcode(block),
|
||||||
fields: blocks.getFields(block),
|
fields: blocks.getFields(block),
|
||||||
inputs: blocks.getInputs(block),
|
inputs: blocks.getInputs(block),
|
||||||
|
@ -988,6 +989,7 @@ BlocksExecuteCache.getCached = function (blocks, blockId, CacheType) {
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
cached = new CacheType(blocks, {
|
cached = new CacheType(blocks, {
|
||||||
|
id: blockId,
|
||||||
opcode: blocks.getOpcode(block),
|
opcode: blocks.getOpcode(block),
|
||||||
fields: blocks.getFields(block),
|
fields: blocks.getFields(block),
|
||||||
inputs: blocks.getInputs(block),
|
inputs: blocks.getInputs(block),
|
||||||
|
|
Loading…
Reference in a new issue