FIX: prevent dead loop of conflict checker (#9115)

jira: STUDIO-10282
Change-Id: I5722e9967cdd83cde5ef59aee37b0f7019e53d89
(cherry picked from commit b952006e4db49f00054cc2ac539074222c890d08)

Co-authored-by: Arthur <arthur.tang@bambulab.com>
This commit is contained in:
Noisyfox 2025-04-05 17:51:16 +08:00 committed by GitHub
parent a2bf46fc53
commit f14232396a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,7 +119,9 @@ float LinesBucketQueue::getCurrBottomZ()
} }
for (LinesBucket *bp : lowests) { for (LinesBucket *bp : lowests) {
float prevZ = bp->curBottomZ();
bp->raise(); bp->raise();
if (bp->curBottomZ() == prevZ) continue;
if (bp->valid()) { line_bucket_ptr_queue.push(bp); } if (bp->valid()) { line_bucket_ptr_queue.push(bp); }
} }
return layerBottomZ; return layerBottomZ;