diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-07-12 19:06:42 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-07-12 19:06:42 +0400 |
commit | a34c7c76c4197027d82f8173cd98e677e09235f4 (patch) | |
tree | 04194e7460541d9aff23c77a0110fbc499557228 /utils | |
parent | bcc8e356b210fadc8893beb5eaacce034808e04a (diff) |
Nicer 3D colors and lighting
Diffstat (limited to 'utils')
-rw-r--r-- | utils/view-mesh.pl | 3 |
1 files changed, 3 insertions, 0 deletions
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; |