From a0ebee2ca3fa6dbbdf2854824109a0929593a5ad Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 21 Jan 2012 11:34:03 +0100 Subject: [PATCH] Warn if no layers were detected --- lib/Slic3r/Print.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index c79c14a8a..0e0d474b2 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -138,6 +138,9 @@ sub new_from_mesh { } } + warn "No layers were detected. You might want to repair your STL file and retry.\n" + if !@{$print->layers}; + return $print; }