Fixed crash when reducing objects from 2D/preview/layers tabs

This commit is contained in:
Enrico Turri 2018-05-03 16:08:41 +02:00
parent af4e0308ae
commit dd4669d1a0

View File

@ -908,6 +908,9 @@ sub deselect_volumes {
sub select_volume {
my ($self, $volume_idx) = @_;
return if ($volume_idx >= scalar(@{$self->volumes}));
$self->volumes->[$volume_idx]->set_selected(1)
if $volume_idx != -1;
}