mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
Changing parsing of custom procedures for new style
This commit is contained in:
parent
e4830dfe51
commit
b0870518a4
4 changed files with 31 additions and 11 deletions
src/engine
|
@ -225,7 +225,9 @@ class Sequencer {
|
|||
// Look for warp-mode flag on definition, and set the thread
|
||||
// to warp-mode if needed.
|
||||
const definitionBlock = thread.target.blocks.getBlock(definition);
|
||||
const doWarp = definitionBlock.mutation.warp;
|
||||
const innerBlock = thread.target.blocks.getBlock(
|
||||
definitionBlock.inputs.custom_block.block);
|
||||
const doWarp = innerBlock.mutation.warp;
|
||||
if (doWarp) {
|
||||
thread.peekStackFrame().warpMode = true;
|
||||
} else if (isRecursive) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue