Explorar o código

Merge pull request #27201 from siddharth952/issue1

Fixed Tileset Editor bug related to polygon size
Mariano Javier Suligoy %!s(int64=6) %!d(string=hai) anos
pai
achega
60fbbba398
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      editor/plugins/tile_set_editor_plugin.cpp

+ 2 - 0
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);
 					}