mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +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');
|
||||
type.setShadow(true);
|
||||
type.outputConnection.connect(this.getInput(outputType).connection);
|
||||
type.initSvg();
|
||||
if (this.rendered) {
|
||||
type.initSvg();
|
||||
type.render();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user