Fixed wipe tower selection

This commit is contained in:
Enrico Turri 2018-09-07 09:21:12 +02:00
parent 8460926d36
commit 0ea18d57d0

View File

@ -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});
}
}