Skip to content

Commit 06b59c4

Browse files
authored
dont prebuild expandable math, use xml in toolbox
1 parent 29ce0f2 commit 06b59c4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

blocks_vertical/operators.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,7 @@ Blockly.Blocks['operator_expandableMath'] = {
145145
"extensions": ["colours_operators", "output_number"]
146146
});
147147

148-
this.inputs_ = 2;
149-
if (this.isInFlyout) {
150-
const input1 = this.appendValueInput("NUM1");
151-
this.fillInBlock(input1.connection, "math_number");
152-
const input2 = this.appendValueInput("NUM2");
153-
input2.appendField(this.menuGenerator());
154-
this.fillInBlock(input2.connection, "math_number");
155-
}
148+
this.inputs_ = 0;
156149
},
157150

158151
fillInBlock: Blockly.scratchBlocksUtils.generateMutatorShadow,

0 commit comments

Comments
 (0)