From 93bb2c1056e03d80fd5e447670aa5e23ebf0a23f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 7 Nov 2012 23:06:32 +0100 Subject: [PATCH] Bugfix: fatal error when using brim and no skirt. #784 --- lib/Slic3r/Print.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 1bc1ad65f..84140e9ee 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -757,8 +757,8 @@ sub write_gcode { # extrude brim if ($layer_id == 0 && !$brim_done) { + $gcode .= $gcodegen->set_extruder($self->extruders->[$Slic3r::Config->support_material_extruder-1]); # move_z requires extruder $gcode .= $gcodegen->move_z($gcodegen->layer->print_z); - $gcode .= $gcodegen->set_extruder($self->extruders->[$Slic3r::Config->support_material_extruder-1]); $gcodegen->set_shift(@shift); $gcode .= $gcodegen->extrude_loop($_, 'brim') for @{$self->brim}; $brim_done = 1;