Fixed crash when reducing objects from 2D/preview/layers tabs
This commit is contained in:
parent
af4e0308ae
commit
dd4669d1a0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user