mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 22:52:01 +08:00
Use multiplication for support material speed
It's initialized same as infill, caused division by 0 when 'auto' speed for support material was selected. Fixes #3837
This commit is contained in:
parent
90623c4170
commit
068ef7b9af
@ -120,7 +120,7 @@ sub export {
|
||||
if ($self->print->has_support_material) {
|
||||
my $object0 = $self->objects->[0];
|
||||
my $flow = $object0->support_material_flow;
|
||||
my $vol_speed = $flow->mm3_per_mm / $object0->config->get_abs_value('support_material_speed');
|
||||
my $vol_speed = $flow->mm3_per_mm * $object0->config->get_abs_value('support_material_speed');
|
||||
$vol_speed = min($vol_speed, $self->config->max_volumetric_speed) if $self->config->max_volumetric_speed > 0;
|
||||
printf $fh "; support material extrusion width = %.2fmm (%.2fmm^3/s)\n",
|
||||
$flow->width, $vol_speed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user