diff options
author | Mariano Javier Suligoy <marianognu.easyrpg@gmail.com> | 2019-04-04 23:09:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 23:09:50 -0300 |
commit | 60fbbba39892704e89ff70ea3e4254761feaeb7b (patch) | |
tree | be2f501260d80064b661b4ffbde5b017603462f6 /editor | |
parent | a6e9af72221bbfe49c86c00e07cf4ab021c3b2e9 (diff) | |
parent | fcd39a506a47e32ac7fa6b403230f0e39e6910f6 (diff) |
Merge pull request #27201 from siddharth952/issue1
Fixed Tileset Editor bug related to polygon size
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index dc099b84a7..8fc080c819 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -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); } |