Skip to content

Commit f756dea

Browse files
committed
make it only set color on command
1 parent 214210f commit f756dea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blocks_vertical/procedures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ Blockly.ScratchBlocks.ProcedureUtils.createArgumentEditor_ = function(
700700
}
701701
newBlock.setFieldValue(displayName, 'TEXT');
702702
newBlock.setShadow(true);
703-
newBlock.setColour(...this.color);
703+
if (argumentType === 'c') newBlock.setColour(...this.color);
704704
if (!this.isInsertionMarker()) {
705705
newBlock.initSvg();
706706
newBlock.render(false);

0 commit comments

Comments
 (0)