From a34c7c76c4197027d82f8173cd98e677e09235f4 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 12 Jul 2014 17:06:42 +0200 Subject: Nicer 3D colors and lighting --- utils/view-mesh.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils') diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl index e4d362675..120ddfe6d 100644 --- a/utils/view-mesh.pl +++ b/utils/view-mesh.pl @@ -27,6 +27,9 @@ my %opt = (); { my $model = Slic3r::Model->read_from_file($ARGV[0]); + # make sure all objects have at least one defined instance + $model->add_default_instances; + $Slic3r::ViewMesh::object = $model->objects->[0]; my $app = Slic3r::ViewMesh->new; $app->MainLoop; -- cgit v1.2.3