💥Fix crash - inconsistent draft shield layer height #171

Open
opened 2026-04-05 16:18:46 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @RF47 on 3/24/2026

Description

Fix erratic draft layer height caused by independent support layer height

This pull request fixes an issue where the draft layer height becomes inconsistent when using independent support layer height.

The problem occurs under the following conditions:

Multiple objects are present
Independent support layer height is enabled
Draft shield is set per object

Under these circumstances, the draft layer height could be incorrectly influenced by the support layer height, resulting in erratic layer generation.

Additionally, when the number of objects is large, this issue could also lead to a crash.

This fix ensures that support layer height remains properly isolated and does not interfere with the draft layer height, improving both stability and correctness in multi-object scenarios.

Screenshots/Recordings/Graphs

Before:
image
After:
image

Tests

(before crashes)
image

chain-links.zip
test draft shield heght.zip

Fix #10950
Fix #10788

*Originally created by @RF47 on 3/24/2026* # Description Fix erratic draft layer height caused by independent support layer height This pull request fixes an issue where the draft layer height becomes inconsistent when using independent support layer height. The problem occurs under the following conditions: Multiple objects are present Independent support layer height is enabled Draft shield is set per object Under these circumstances, the draft layer height could be incorrectly influenced by the support layer height, resulting in erratic layer generation. Additionally, when the number of objects is large, this issue could also lead to a crash. This fix ensures that support layer height remains properly isolated and does not interfere with the draft layer height, improving both stability and correctness in multi-object scenarios. # Screenshots/Recordings/Graphs Before: <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/41e7e551-32d4-4f3a-a01f-85d1a881c5b1" /> After: <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/38171b66-dc6d-4efc-acc0-1fce92cf3c8d" /> ## Tests (before crashes) <img width="2560" height="1392" alt="image" src="https://github.com/user-attachments/assets/78b7f71e-9c4b-49fb-b15d-02c7ed92e2e7" /> [chain-links.zip](https://github.com/user-attachments/files/26228724/chain-links.zip) [test draft shield heght.zip](https://github.com/user-attachments/files/26228740/test.draft.shield.heght.zip) Fix #10950 Fix #10788
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#171