Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.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>2013-08-25 18:35:21 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-08-25 18:35:21 +0400
commitfde6e371a923319eafdc392ba45f5e11f982fcee (patch)
treea34399dbb63fc0c084b48927a623b1a105d38a91 /utils
parent2fb725405f25267d6a321c821076b76fcdec2a30 (diff)
Use multiple colors for multimaterial models in 3D preview
Diffstat (limited to 'utils')
-rw-r--r--utils/view-mesh.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl
index 3e4d27232..e4d362675 100644
--- a/utils/view-mesh.pl
+++ b/utils/view-mesh.pl
@@ -27,7 +27,7 @@ my %opt = ();
{
my $model = Slic3r::Model->read_from_file($ARGV[0]);
- $Slic3r::ViewMesh::mesh = $model->mesh;
+ $Slic3r::ViewMesh::object = $model->objects->[0];
my $app = Slic3r::ViewMesh->new;
$app->MainLoop;
}
@@ -49,7 +49,7 @@ package Slic3r::ViewMesh;
use Wx qw(:sizer);
use base qw(Wx::App);
-our $mesh;
+our $object;
sub OnInit {
my $self = shift;
@@ -58,7 +58,7 @@ sub OnInit {
my $panel = Wx::Panel->new($frame, -1);
my $sizer = Wx::BoxSizer->new(wxVERTICAL);
- $sizer->Add(Slic3r::GUI::PreviewCanvas->new($panel, $mesh), 1, wxEXPAND, 0);
+ $sizer->Add(Slic3r::GUI::PreviewCanvas->new($panel, $object), 1, wxEXPAND, 0);
$panel->SetSizer($sizer);
$sizer->SetSizeHints($panel);