summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddharth <siddharth952@gmail.com>2019-03-27 22:50:52 +0530
committerSiddharth <siddharth952@gmail.com>2019-03-27 22:50:52 +0530
commitfcd39a506a47e32ac7fa6b403230f0e39e6910f6 (patch)
tree6720b5677958517cfbec50debe6aa7d0838770a2
parentba2b09b034b29aebd9237cb96e3d05ffa808a4f0 (diff)
Update tile_set_editor_plugin.cpp
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp2
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);
}