diff --git a/demos/blockfactory/blocks.js b/demos/blockfactory/blocks.js index 15c8ac864..34313cad1 100644 --- a/demos/blockfactory/blocks.js +++ b/demos/blockfactory/blocks.js @@ -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(); } },