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
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-08-24 17:58:53 +0300
committerbubnikv <bubnikv@gmail.com>2018-08-24 17:58:53 +0300
commitfec254503320e3a6c33a035fdd9d51ab1d73d7a1 (patch)
tree2f6deb14516de1f9e2548ad886c7f206e9f256d9 /lib/Slic3r/GUI
parent3c0d81e7d96b2b3ba95d6e1a645bba13fda6fd82 (diff)
parenta4176ef9338e7a1984fd983661351275c7ff19f1 (diff)
Merge branch 'master' of https://github.com/prusa3d/Slic3r
Diffstat (limited to 'lib/Slic3r/GUI')
-rw-r--r--lib/Slic3r/GUI/Plater.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm
index aa71c67de..ee2689d16 100644
--- a/lib/Slic3r/GUI/Plater.pm
+++ b/lib/Slic3r/GUI/Plater.pm
@@ -1002,9 +1002,10 @@ sub set_number_of_copies {
my $model_object = $self->{model}->objects->[$obj_idx];
# prompt user
- my $copies = Wx::GetNumberFromUser("", L("Enter the number of copies of the selected object:"), L("Copies"), $model_object->instances_count, 0, 1000, $self);
+ my $copies = -1;
+ $copies = Wx::GetNumberFromUser("", L("Enter the number of copies of the selected object:"), L("Copies"), $model_object->instances_count, 0, 1000, $self);
my $diff = $copies - $model_object->instances_count;
- if ($diff == 0) {
+ if ($diff == 0 || $copies == -1) {
# no variation
$self->resume_background_process;
} elsif ($diff > 0) {