Changing parsing of custom procedures for new style

This commit is contained in:
Paul Kaplan 2017-10-06 15:34:32 -04:00
parent e4830dfe51
commit b0870518a4
4 changed files with 31 additions and 11 deletions
src/engine

View file

@ -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) {