Update tile_set_editor_plugin.cpp

This commit is contained in:
Siddharth 2019-03-27 22:50:52 +05:30
parent ba2b09b034
commit fcd39a506a

View file

@ -2417,6 +2417,8 @@ void TileSetEditor::draw_polygon_shapes() {
colors.push_back(c_bg); colors.push_back(c_bg);
} }
} }
if (polygon.size() == 0)
continue;
if (polygon.size() > 2) { if (polygon.size() > 2) {
workspace->draw_polygon(polygon, colors); workspace->draw_polygon(polygon, colors);
} }