Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorqtux <matthias.gazzari@stud.tu-darmstadt.de>2017-12-05 21:05:49 +0300
committerbubnikv <bubnikv@gmail.com>2017-12-05 21:05:49 +0300
commitb0f84c5cb2368eea3683be9ea876a07b8a3bfdc5 (patch)
tree2ca41dc657d6151296b3a06343db9581e6fad963 /lib
parent7892dfd53c083f7b5c26dad04dca0f84ab29b2a7 (diff)
Add used filament length to the "Sliced Info" box (#585)
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/Plater.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm
index 0cb433309..f1db05dc4 100644
--- a/lib/Slic3r/GUI/Plater.pm
+++ b/lib/Slic3r/GUI/Plater.pm
@@ -430,6 +430,7 @@ sub new {
$grid_sizer->AddGrowableCol(3, 1);
$print_info_sizer->Add($grid_sizer, 0, wxEXPAND);
my @info = (
+ fil_m => "Used Filament (m)",
fil_mm3 => "Used Filament (mm^3)",
fil_g => "Used Filament (g)",
cost => "Cost",
@@ -1426,6 +1427,7 @@ sub on_export_completed {
$self->{"print_info_cost"}->SetLabel(sprintf("%.2f" , $self->{print}->total_cost));
$self->{"print_info_fil_g"}->SetLabel(sprintf("%.2f" , $self->{print}->total_weight));
$self->{"print_info_fil_mm3"}->SetLabel(sprintf("%.2f" , $self->{print}->total_extruded_volume));
+ $self->{"print_info_fil_m"}->SetLabel(sprintf("%.2f" , $self->{print}->total_used_filament / 1000));
$self->{"print_info_box_show"}->(1);
# this updates buttons status