Browse Source

Bugfix: fatal error when a layer contained nothing

Alessandro Ranellucci 12 years ago
parent
commit
20229fccdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Slic3r/Print.pm

+ 1 - 1
lib/Slic3r/Print.pm

@@ -568,7 +568,7 @@ sub write_gcode {
                     if $Slic3r::support_material_tool > 0;
             }
         }
-        last if !$gcode;
+        return if !$gcode;
         
         my $fan_speed = $Slic3r::fan_always_on ? $Slic3r::min_fan_speed : 0;
         my $speed_factor = 1;