1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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);
}
}
if (polygon.size() == 0)
continue;
if (polygon.size() > 2) {
workspace->draw_polygon(polygon, colors);
}