From 8f787a3e411399a0bb106509a85c35ff71c1be06 Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Mon, 13 Jan 2020 10:32:22 -0800 Subject: [PATCH] Re-rendering block in setMutator. (#3574) --- core/block_svg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/block_svg.js b/core/block_svg.js index 1d1d57835..338db0d15 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -1123,6 +1123,11 @@ Blockly.BlockSvg.prototype.setMutator = function(mutator) { this.mutator = mutator; mutator.createIcon(); } + if (this.rendered) { + this.render(); + // Adding or removing a mutator icon will cause the block to change shape. + this.bumpNeighbours(); + } }; /**