mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-08 00:01:09 +00:00
Prepare view: drop the dormant tilted-bed rendering
Plater::set_bed_shape read the belt keys from the plater's own config, which never carries them, so the branch that tilted the bed model, drew the slicing arrow and plane and switched the build volume to belt mode never ran. The Prepare view shows the bed as the slicing pipeline treats it, flat; the gravity arrow from build_plate_tilt stays, as does the preview's belt view, which takes its angle from the G-code header.
This commit is contained in:
@@ -1223,10 +1223,8 @@ void GCodeViewer::load_as_gcode(const GCodeProcessorResult& gcode_result, const
|
||||
m_loaded_as_preview = false;
|
||||
|
||||
// Belt printers: drive the designed/raw view UI (legend checkbox, hotkey B, canvas-toolbar
|
||||
// menu item) from the loaded print here. Plater::set_bed_shape also calls set_belt_printer(),
|
||||
// but only on bed-shape changes — not reliably on every slice/preview load — so the UI was
|
||||
// staying hidden even though the (config-driven) designed view rendered. The tilt magnitude
|
||||
// comes from the G-code header (gcode_result.belt_tilt_angle, abs of the slicing rotation).
|
||||
// menu item) from the loaded print. The tilt magnitude comes from the G-code header
|
||||
// (gcode_result.belt_tilt_angle, abs of the slicing rotation).
|
||||
m_belt_view_enabled = print.config().belt_printer.value;
|
||||
m_belt_angle_deg = gcode_result.belt_tilt_angle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user