File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,6 @@ void Engine::compile()
8282 compiler.compile (block);
8383
8484 vm->setFunctions (m_functions);
85- vm->setConstValues (compiler.constValues ());
86- vm->setVariables (compiler.variablePtrs ());
87- vm->setLists (compiler.lists ());
8885 vm->setBytecode (compiler.bytecode ());
8986 if (block->opcode () == " procedures_definition" ) {
9087 auto b = block->inputAt (block->findInput (" custom_block" ))->valueBlock ();
@@ -101,8 +98,12 @@ void Engine::compile()
10198 procedureBytecodes.push_back (procedureBytecodeMap[code]);
10299
103100 for (auto block : blocks) {
104- if (m_scripts.count (block) == 1 )
101+ if (m_scripts.count (block) == 1 ) {
105102 m_scripts[block]->setProcedures (procedureBytecodes);
103+ m_scripts[block]->setConstValues (compiler.constValues ());
104+ m_scripts[block]->setVariables (compiler.variablePtrs ());
105+ m_scripts[block]->setLists (compiler.lists ());
106+ }
106107 }
107108 }
108109}
You can’t perform that action at this time.
0 commit comments