Re-rendering block in setMutator. (#3574)

This commit is contained in:
Monica Kozbial
2020-01-13 10:32:22 -08:00
committed by GitHub
parent c9d7d097e3
commit 8f787a3e41

View File

@@ -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();
}
};
/**