diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 87de2bdee..1067dfa30 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -559,7 +559,12 @@ sub export_gcode2 { $message .= sprintf " %d minutes and", $minutes if $minutes; $message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60; } - $message .= "."; + $message .= ".\n"; + + # Filament required + $message .= sprintf "Filament required: %.1fmm (%.1fcm3).", + $print->total_extrusion_length, $print->total_extrusion_volume; + $params{on_completed}->($message); $print->cleanup; }; diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index ec786a955..dbc073f83 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -154,7 +154,12 @@ sub do_slice { $message .= sprintf " %d minutes and", $minutes if $minutes; $message .= sprintf " %.1f seconds", $print->processing_time - $minutes*60; } - $message .= "."; + $message .= ".\n"; + + # Filament required + $message .= sprintf "Filament required: %.1fmm (%.1fcm3).", + $print->total_extrusion_length, $print->total_extrusion_volume; + &Wx::wxTheApp->notify($message); Wx::MessageDialog->new($self, $message, 'Slicing Done!', wxOK | wxICON_INFORMATION)->ShowModal;