mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
fix: only initSvg on rendered blocks (#8215)
This commit is contained in:
committed by
GitHub
parent
e455a94ae3
commit
24fe13f0c9
@@ -85,8 +85,8 @@ Blockly.Blocks['factory_base'] = {
|
|||||||
var type = this.workspace.newBlock('type_null');
|
var type = this.workspace.newBlock('type_null');
|
||||||
type.setShadow(true);
|
type.setShadow(true);
|
||||||
type.outputConnection.connect(this.getInput(outputType).connection);
|
type.outputConnection.connect(this.getInput(outputType).connection);
|
||||||
type.initSvg();
|
|
||||||
if (this.rendered) {
|
if (this.rendered) {
|
||||||
|
type.initSvg();
|
||||||
type.render();
|
type.render();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user