mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
GCode Viewer - Fixed crash when switching to tool view with gcode generated by slicers other than PrusaSlicer
This commit is contained in:
parent
d9f845d0b3
commit
148f4fe766
1 changed files with 4 additions and 0 deletions
|
@ -817,6 +817,10 @@ void GCodeProcessor::process_file(const std::string& filename, bool apply_postpr
|
||||||
|
|
||||||
update_estimated_times_stats();
|
update_estimated_times_stats();
|
||||||
|
|
||||||
|
// ensure at least one (default) color is defined
|
||||||
|
if (m_result.extruder_colors.empty())
|
||||||
|
m_result.extruder_colors.push_back("#FF8000");
|
||||||
|
|
||||||
// post-process to add M73 lines into the gcode
|
// post-process to add M73 lines into the gcode
|
||||||
if (apply_postprocess)
|
if (apply_postprocess)
|
||||||
m_time_processor.post_process(filename);
|
m_time_processor.post_process(filename);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue