Merge pull request #27201 from siddharth952/issue1

Fixed Tileset Editor bug related to polygon size
This commit is contained in:
Mariano Javier Suligoy 2019-04-04 23:09:50 -03:00 committed by GitHub
commit 60fbbba398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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