mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Re-rendering block in setMutator. (#3574)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user