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

@ -148,6 +148,8 @@ const execute = function (sequencer, thread) {
// Recursively evaluate input blocks.
for (const inputName in inputs) {
if (!inputs.hasOwnProperty(inputName)) continue;
// Do not evaluate the internal custom command block within definition
if (inputName === 'custom_block') continue;
const input = inputs[inputName];
const inputBlockId = input.block;
// Is there no value for this input waiting in the stack frame?