From 0b233f23b5454dca64de63c005c5be9dd2930bc3 Mon Sep 17 00:00:00 2001 From: cochcoder <103969142+cochcoder@users.noreply.github.com> Date: Sat, 15 Jun 2024 06:56:14 +0000 Subject: [PATCH] Fix time cost not being considered in total cost (#5698) * Fix time cost not be added in total cost --- src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 0334edcaf8..3a9b36f7c9 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -1398,6 +1398,8 @@ namespace DoExport { total_cost += weight * extruder->filament_cost() * 0.001; } + total_cost += config.time_cost.getFloat() * (normal_print_time/3600.0); + print_statistics.total_extruded_volume = total_extruded_volume; print_statistics.total_used_filament = total_used_filament; print_statistics.total_weight = total_weight;