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
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-07-12 19:06:42 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-07-12 19:06:42 +0400
commita34c7c76c4197027d82f8173cd98e677e09235f4 (patch)
tree04194e7460541d9aff23c77a0110fbc499557228 /utils
parentbcc8e356b210fadc8893beb5eaacce034808e04a (diff)
Nicer 3D colors and lighting
Diffstat (limited to 'utils')
-rw-r--r--utils/view-mesh.pl3
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;