mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX:The color scheme selection has been reset.
jira: nojira Change-Id: I8bf7a8db4e40315b68e610008c865c319ba70172 (cherry picked from commit 5ae194be77187ba349389dc3726cacbcf89dea9c)
This commit is contained in:
@@ -867,6 +867,15 @@ void GCodeViewer::init(ConfigOptionMode mode, PresetBundle* preset_bundle)
|
|||||||
m_layers_slider->init_texture();
|
m_layers_slider->init_texture();
|
||||||
|
|
||||||
m_gl_data_initialized = true;
|
m_gl_data_initialized = true;
|
||||||
|
|
||||||
|
// set to color print by default if use multi extruders
|
||||||
|
if (m_nozzle_nums > 1) {
|
||||||
|
m_view_type_sel = (int)EViewType::Summary;
|
||||||
|
set_view_type(EViewType::Summary);
|
||||||
|
} else {
|
||||||
|
m_view_type_sel = (int)EViewType::FeatureType;
|
||||||
|
set_view_type(EViewType::FeatureType);
|
||||||
|
}
|
||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": finished");
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": finished");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1068,15 +1077,6 @@ void GCodeViewer::load(const GCodeProcessorResult& gcode_result, const Print& pr
|
|||||||
m_time_estimate_mode = PrintEstimatedStatistics::ETimeMode::Normal;
|
m_time_estimate_mode = PrintEstimatedStatistics::ETimeMode::Normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set to color print by default if use multi extruders
|
|
||||||
if (m_nozzle_nums > 1) {
|
|
||||||
m_view_type_sel = (int) EViewType::Summary;
|
|
||||||
set_view_type(EViewType::Summary);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_view_type_sel = (int) EViewType::FeatureType;
|
|
||||||
set_view_type(EViewType::FeatureType);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool only_gcode_3mf = false;
|
bool only_gcode_3mf = false;
|
||||||
PartPlate* current_plate = wxGetApp().plater()->get_partplate_list().get_curr_plate();
|
PartPlate* current_plate = wxGetApp().plater()->get_partplate_list().get_curr_plate();
|
||||||
|
|||||||
Reference in New Issue
Block a user