We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 719ad48 commit 63c64f4Copy full SHA for 63c64f4
blocks_vertical/procedures.js
@@ -564,7 +564,13 @@ Blockly.ScratchBlocks.ProcedureUtils.populateArgumentOnPrototype_ = function(
564
Blockly.ScratchBlocks.ProcedureUtils.checkOldTypeMatches_(oldBlock, type);
565
var displayName = this.displayNames_[index];
566
567
- // Decide which block to attach.
+ // For update colors
568
+ if (oldBlock) {
569
+ oldBlock.color = this.color;
570
+ oldBlock.setColour(...oldBlock.color);
571
+ this.setColour(...this.color);
572
+ }
573
+ // Decide which block to attach
574
if (connectionMap && oldBlock && oldTypeMatches) {
575
// Update the text if needed. The old argument reporter is the same type,
576
// and on the same input, but the argument's display name may have changed.
0 commit comments