fix a crash bug when generating support (#8357)

This commit is contained in:
SoftFever 2025-02-09 19:59:30 +08:00 committed by GitHub
parent cc92abf8b5
commit 107cd3edb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,7 +337,7 @@ public:
TEdge *p_edge = edges.data();
i = 0;
for (const Path &pg : paths_provider) {
if (num_edges[i]) {
if (num_edges[i] && !pg.empty()) {
bool res = AddPathInternal(pg, num_edges[i] - 1, PolyTyp, Closed, p_edge);
if (res) {
p_edge += num_edges[i];