Skip to content

Commit 24a425d

Browse files
committed
CustomBlocks: Add warp support
1 parent 906d358 commit 24a425d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/blocks/customblocks.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ void CustomBlocks::compileDefinition(Compiler *compiler)
2929
{
3030
auto prototype = compiler->input(CUSTOM_BLOCK)->valueBlock()->mutationPrototype();
3131
compiler->setProcedurePrototype(prototype);
32+
if (prototype->warp())
33+
compiler->warp();
3234
const std::vector<std::string> &args = prototype->argumentNames();
3335
const std::string &code = prototype->procCode();
3436
for (const std::string &arg : args)

0 commit comments

Comments
 (0)