mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
fix a crash bug when generating support (#8357)
This commit is contained in:
@@ -337,7 +337,7 @@ public:
|
|||||||
TEdge *p_edge = edges.data();
|
TEdge *p_edge = edges.data();
|
||||||
i = 0;
|
i = 0;
|
||||||
for (const Path &pg : paths_provider) {
|
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);
|
bool res = AddPathInternal(pg, num_edges[i] - 1, PolyTyp, Closed, p_edge);
|
||||||
if (res) {
|
if (res) {
|
||||||
p_edge += num_edges[i];
|
p_edge += num_edges[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user