mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-03 01:30:27 -04:00
Merge pull request #2400 from adroitwhiz/no-shadow-ops
Remove BlockCached._shadowOps
This commit is contained in:
commit
1ba3181a9d
1 changed files with 1 additions and 11 deletions
|
@ -267,13 +267,6 @@ class BlockCached {
|
||||||
*/
|
*/
|
||||||
this._parentValues = null;
|
this._parentValues = null;
|
||||||
|
|
||||||
/**
|
|
||||||
* A sequence of shadow value operations that can be performed in any
|
|
||||||
* order and are easier to perform given that they are static.
|
|
||||||
* @type {Array<BlockCached>}
|
|
||||||
*/
|
|
||||||
this._shadowOps = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sequence of non-shadow operations that can must be performed. This
|
* A sequence of non-shadow operations that can must be performed. This
|
||||||
* list recreates the order this block and its children are executed.
|
* list recreates the order this block and its children are executed.
|
||||||
|
@ -359,7 +352,6 @@ class BlockCached {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._shadowOps.push(...inputCached._shadowOps);
|
|
||||||
this._ops.push(...inputCached._ops);
|
this._ops.push(...inputCached._ops);
|
||||||
inputCached._parentKey = inputName;
|
inputCached._parentKey = inputName;
|
||||||
inputCached._parentValues = this._argValues;
|
inputCached._parentValues = this._argValues;
|
||||||
|
@ -374,9 +366,7 @@ class BlockCached {
|
||||||
|
|
||||||
// The final operation is this block itself. At the top most block is a
|
// The final operation is this block itself. At the top most block is a
|
||||||
// command block or a block that is being run as a monitor.
|
// command block or a block that is being run as a monitor.
|
||||||
if (!this._isHat && this._isShadowBlock) {
|
if (this._definedBlockFunction) {
|
||||||
this._shadowOps.push(this);
|
|
||||||
} else if (this._definedBlockFunction) {
|
|
||||||
this._ops.push(this);
|
this._ops.push(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue