diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-09-07 10:21:12 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-09-07 10:21:12 +0300 |
commit | 0ea18d57d0c27e4fe8d46f90ac9d620140d90dc5 (patch) | |
tree | 89c7b454441b5744d21d14310baa5b414d06bf3d /lib | |
parent | 8460926d36f777282e0cfc47a86341a6b1991fc2 (diff) |
Fixed wipe tower selection
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Slic3r/GUI/Plater.pm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 8a9d13aae..016c2e800 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -2129,17 +2129,18 @@ sub on_config_change { $self->schedule_background_process; } -sub item_changed_selection{ +sub item_changed_selection { my ($self, $obj_idx) = @_; -# $self->{canvas}->Refresh; - if ($self->{canvas3D}) { - Slic3r::GUI::_3DScene::deselect_volumes($self->{canvas3D}); - if ($obj_idx >= 0){ - my $selections = $self->collect_selections; - Slic3r::GUI::_3DScene::update_volumes_selection($self->{canvas3D}, \@$selections); + if (($obj_idx >= 0) && ($obj_idx < 1000)) { # skip if wipe tower selected + if ($self->{canvas3D}) { + Slic3r::GUI::_3DScene::deselect_volumes($self->{canvas3D}); + if ($obj_idx >= 0) { + my $selections = $self->collect_selections; + Slic3r::GUI::_3DScene::update_volumes_selection($self->{canvas3D}, \@$selections); + } +# Slic3r::GUI::_3DScene::render($self->{canvas3D}); } - Slic3r::GUI::_3DScene::render($self->{canvas3D}); } } |