Merge pull request #2305 from jollytoad/bugfix/2302-fix-hat

Fix hat logic
This commit is contained in:
alschmiedt
2019-02-21 10:48:02 -08:00
committed by GitHub

View File

@@ -567,7 +567,7 @@ Blockly.BlockSvg.prototype.renderDraw_ = function(iconWidth, inputRows) {
this.squareTopLeftCorner_ = true;
this.squareBottomLeftCorner_ = true;
} else {
var renderCap = typeof this.hat !== undefined ? this.hat === 'cap' :
var renderCap = this.hat ? this.hat === 'cap' :
Blockly.BlockSvg.START_HAT;
this.squareTopLeftCorner_ = false;