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-12-14 00:18:43 +0300
committerAlessandro Ranellucci <aar@cpan.org>2014-12-14 00:18:43 +0300
commit2f2ae7552920fcfbec348b7e328c711569a7b0f5 (patch)
tree8d304b319df88ce63f82a79ffa719fd2221e8c9a /utils
parentac2b6de62bd38e6f9dd87f26f2a0394d7b6b41c7 (diff)
Some incomplete work for moving objects in 3D plater
Diffstat (limited to 'utils')
-rw-r--r--utils/view-mesh.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl
index 61d6748f6..58f641a92 100644
--- a/utils/view-mesh.pl
+++ b/utils/view-mesh.pl
@@ -20,6 +20,7 @@ my %opt = ();
my %options = (
'help' => sub { usage() },
'cut=f' => \$opt{cut},
+ 'enable-moving' => \$opt{enable_moving},
);
GetOptions(%options) or usage(1);
$ARGV[0] or usage(1);
@@ -33,6 +34,7 @@ my %opt = ();
my $app = Slic3r::ViewMesh->new;
$app->{canvas}->enable_picking(1);
+ $app->{canvas}->enable_moving($opt{enable_moving});
$app->{canvas}->load_object($model->objects->[0]);
$app->{canvas}->set_bounding_box($model->objects->[0]->bounding_box);
$app->{canvas}->set_auto_bed_shape;