From 2d995372d8e4e47086fbf0b8a71224cd7b763f81 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Mon, 18 Mar 2019 17:00:30 +0530 Subject: Updated tile_set_editor_plugin.cpp And area.cpp# This is a combination of 2 commits. Updated tile_set_editor_plugin.cpp And area.cpp Updated with clang-format Updated tile_set_editor_plugin.cpp And area.cpp --- editor/plugins/tile_set_editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor/plugins') diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index dc099b84a7..05de0519e6 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -2417,7 +2417,9 @@ void TileSetEditor::draw_polygon_shapes() { colors.push_back(c_bg); } } - if (polygon.size() > 2) { + if (polygon.size() == 0) + continue; + else if (polygon.size() > 2) { workspace->draw_polygon(polygon, colors); } -- cgit v1.2.3 From ba2b09b034b29aebd9237cb96e3d05ffa808a4f0 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 27 Mar 2019 22:49:19 +0530 Subject: Revert "Updated tile_set_editor_plugin.cpp And area.cpp# This is a combination of 2 commits." This reverts commit 2d995372d8e4e47086fbf0b8a71224cd7b763f81. --- editor/plugins/tile_set_editor_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index 05de0519e6..dc099b84a7 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -2417,9 +2417,7 @@ void TileSetEditor::draw_polygon_shapes() { colors.push_back(c_bg); } } - if (polygon.size() == 0) - continue; - else if (polygon.size() > 2) { + if (polygon.size() > 2) { workspace->draw_polygon(polygon, colors); } -- cgit v1.2.3 From fcd39a506a47e32ac7fa6b403230f0e39e6910f6 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 27 Mar 2019 22:50:52 +0530 Subject: Update tile_set_editor_plugin.cpp --- editor/plugins/tile_set_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/plugins') 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); } -- cgit v1.2.3