Fix hat logic

This commit is contained in:
Mark Gibson
2019-02-21 14:49:01 +00:00
parent 570eecbff8
commit 09ce0873a8

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;