Fix: Modify the method of obtaining the first_layer_time.

Jira: None

Change-Id: I0ef83d8f47f9d7b235b88caaa8b895367729f3e9
(cherry picked from commit 1de8d5c0d3bb6742219963bd7297286a937e0ed5)
This commit is contained in:
weizhen.xie 2025-09-29 10:02:05 +08:00 committed by Noisyfox
parent 9f7ff97be6
commit c93d345d2a
4 changed files with 4 additions and 9 deletions

View file

@ -1987,7 +1987,6 @@ void GCode::do_export(Print* print, const char* path, GCodeProcessorResult* resu
if(is_BBL_Printer())
result->label_object_enabled = m_enable_exclude_object;
result->initial_layer_time = m_initial_layer_time;
// Write the profiler measurements to file
PROFILE_UPDATE();
PROFILE_OUTPUT(debug_out_path("gcode-export-profile.txt").c_str());
@ -3430,11 +3429,6 @@ void GCode::process_layers(
else
tbb::parallel_pipeline(12, generator & cooling & fan_mover & pa_processor_filter & output);
for (auto& layer_res : layers_results) {
if (layer_res.layer_id == 0)
m_initial_layer_time = layer_res.layer_time;
}
}
// Process all layers of a single object instance (sequential mode) with a parallel pipeline: