소스 검색

Update tile_set_editor_plugin.cpp

Siddharth 6 년 전
부모
커밋
fcd39a506a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);
 					}