From fcd39a506a47e32ac7fa6b403230f0e39e6910f6 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 27 Mar 2019 22:50:52 +0530 Subject: [PATCH] Update tile_set_editor_plugin.cpp --- editor/plugins/tile_set_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index dc099b84a7c..8fc080c8195 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); }