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
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-12-15 23:36:46 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-12-15 23:36:46 +0400
commitb422537cc493d2eabd8cfcbfa30ab45b88c1d5da (patch)
tree9824b95ca523bb995cc22ff1955d485d073b4313
parent18cfc15eadf26a1a9df1766695cc9e15a8cb8c3d (diff)
Bugfix: do not die when no layers are detected at all
-rw-r--r--lib/Slic3r/Print.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm
index 552e92002..0b3587432 100644
--- a/lib/Slic3r/Print.pm
+++ b/lib/Slic3r/Print.pm
@@ -129,7 +129,7 @@ sub new_from_mesh {
}
# remove empty layers from bottom
- while (!@{$print->layers->[0]->slices}) {
+ while (@{$print->layers} && !@{$print->layers->[0]->slices}) {
shift @{$print->layers};
for (my $i = 0; $i <= $#{$print->layers}; $i++) {
$print->layers->[$i]->id($i);