Set is_BBL_printer flag before validation in CLI slicing path #1938

Closed
opened 2026-04-05 21:30:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @johanohly on 10/11/2025

Description

Fixes validation failures in CLI mode by ensuring the is_BBL_printer() flag is set before calling Print::validate().

Previously, the CLI slicing code called print->validate() before setting the is_BBL_printer() flag, causing validation to fail for cases where the validation logic depends on knowing whether it's a Bambu Lab printer.

The fix moves the BBL printer detection logic to occur before the validate() call, matching the behavior of BackgroundSlicingProcess::validate() used in the GUI path.

Screenshots

An example of the CLI and GUI slice result deviating. The 3mf being sliced is a completely standard project created in the OrcaSlicer GUI with the A1 Mini printer selected. This 3mf fails when sliced through the CLI while working as intended through the GUI.
CleanShot 2025-10-11 at 19 28 16@2x

*Originally created by @johanohly on 10/11/2025* # Description Fixes validation failures in CLI mode by ensuring the `is_BBL_printer()` flag is set before calling `Print::validate()`. Previously, the CLI slicing code called `print->validate()` before setting the `is_BBL_printer()` flag, causing validation to fail for cases where the validation logic depends on knowing whether it's a Bambu Lab printer. The fix moves the BBL printer detection logic to occur before the `validate()` call, matching the behavior of `BackgroundSlicingProcess::validate()` used in the GUI path. # Screenshots An example of the CLI and GUI slice result deviating. The 3mf being sliced is a completely standard project created in the OrcaSlicer GUI with the A1 Mini printer selected. This 3mf fails when sliced through the CLI while working as intended through the GUI. <img width="3442" height="550" alt="CleanShot 2025-10-11 at 19 28 16@2x" src="https://github.com/user-attachments/assets/bf350ac2-1073-4c87-8a2e-0ea92702b3c2" />
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#1938