mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 08:17:45 -07:00
ENH: initialize nozzle num in gcodeviewer
jira:none Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I44827eb7adb457823b3da1d6b45a6003864294b6 (cherry picked from commit 129134f6df3fbad88d3b83a901b665da5c66f5c3)
This commit is contained in:
parent
e5e95d48cc
commit
60df338ac5
1 changed files with 3 additions and 0 deletions
|
|
@ -868,6 +868,9 @@ void GCodeViewer::init(ConfigOptionMode mode, PresetBundle* preset_bundle)
|
|||
|
||||
m_gl_data_initialized = true;
|
||||
|
||||
if (preset_bundle)
|
||||
m_nozzle_nums = preset_bundle->get_printer_extruder_count();
|
||||
|
||||
// set to color print by default if use multi extruders
|
||||
if (m_nozzle_nums > 1) {
|
||||
m_view_type_sel = (int)EViewType::Summary;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue