From eaff6df09ac33472d4d5603efdbb66d12ce508c2 Mon Sep 17 00:00:00 2001 From: sussy layers dev <72522395+jwklong@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:45:10 +0000 Subject: [PATCH] i have a solution --- src/engine/runtime.js | 11 +---------- src/extension-support/argument-type.js | 8 +------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/engine/runtime.js b/src/engine/runtime.js index bb86908068..2737b24eb4 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -160,13 +160,6 @@ const ArgumentTypeMap = (() => { fieldType: 'field_vertical_separator' }; - map[ArgumentType.LEAF] = { - shape: BlockShape.LEAF - }; - map[ArgumentType.PLUS] = { - shape: BlockShape.PLUS - }; - return map; })(); @@ -1897,12 +1890,10 @@ class Runtime extends EventEmitter { // shaped like a hexagon argJSON.check = argTypeInfo.check; } - if (argTypeInfo.shape) { + if (argInfo.shape) { argJSON.shape = argTypeInfo.shape; } - console.debug(argJSON, argTypeInfo) - let valueName; let shadowType; let blockType; diff --git a/src/extension-support/argument-type.js b/src/extension-support/argument-type.js index 5bbda45508..b573a6d9f8 100644 --- a/src/extension-support/argument-type.js +++ b/src/extension-support/argument-type.js @@ -82,13 +82,7 @@ const ArgumentType = { /** * pm: Vertical seperator */ - SEPERATOR: 'seperator', - - //custom block shape argument thingy till i work it all out - - LEAF: 'leaf', - - PLUS: 'plus', + SEPERATOR: 'seperator' }; module.exports = ArgumentType;