[Bug] Custom G-code incorrectly shifts to the top layer of remaining objects when a taller object is deleted #590

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

Originally created by @Zhujingxi on 2/26/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

v2.3.2-beta2

Operating System (OS)

macOS

OS Version

MacOS: 26.3 (25D125) and Windows11

Additional system information

No response

Printer

ALL

How to reproduce

  1. Import two objects onto the build plate: one tall and one short.

  2. Slice the plate.

  3. Use the layer slider to right-click and Add Custom G-code at a layer height that is higher than the short object but lower than the top of the tall object.

  4. Return to the Prepare tab and delete the tall object.

  5. Slice the plate again.

https://github.com/user-attachments/assets/a7bdf593-ecb5-4bd9-945e-fd2d42c93c98

Actual results

The custom G-code is incorrectly shifted and forcefully applied to the top layer of the remaining short object.

Expected results

The custom G-code should either remain at its assigned absolute layer height/Z-height (if within the new build volume bounds) or be automatically removed with a warning prompt if the assigned layer no longer exists. It should not arbitrarily snap to the top layer of the new layout.

Project file & Debug log uploads

Cube.3mf.zip

log.zip

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

*Originally created by @Zhujingxi on 2/26/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version v2.3.2-beta2 ### Operating System (OS) macOS ### OS Version MacOS: 26.3 (25D125) and Windows11 ### Additional system information _No response_ ### Printer ALL ### How to reproduce 1. Import two objects onto the build plate: one tall and one short. 2. Slice the plate. 3. Use the layer slider to right-click and Add Custom G-code at a layer height that is higher than the short object but lower than the top of the tall object. 4. Return to the Prepare tab and delete the tall object. 5. Slice the plate again. https://github.com/user-attachments/assets/a7bdf593-ecb5-4bd9-945e-fd2d42c93c98 ### Actual results The custom G-code is incorrectly shifted and forcefully applied to the top layer of the remaining short object. ### Expected results The custom G-code should either remain at its assigned absolute layer height/Z-height (if within the new build volume bounds) or be automatically removed with a warning prompt if the assigned layer no longer exists. It should not arbitrarily snap to the top layer of the new layout. ### Project file & Debug log uploads [Cube.3mf.zip](https://github.com/user-attachments/files/25569468/Cube.3mf.zip) [log.zip](https://github.com/user-attachments/files/25569471/log.zip) ### Checklist of files to include - [x] Log file - [x] Project file ### Anything else? _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#590