Fixed crash when reducing objects from 2D/preview/layers tabs
This commit is contained in:
parent
af4e0308ae
commit
dd4669d1a0
1 changed files with 3 additions and 0 deletions
|
@ -908,6 +908,9 @@ sub deselect_volumes {
|
||||||
|
|
||||||
sub select_volume {
|
sub select_volume {
|
||||||
my ($self, $volume_idx) = @_;
|
my ($self, $volume_idx) = @_;
|
||||||
|
|
||||||
|
return if ($volume_idx >= scalar(@{$self->volumes}));
|
||||||
|
|
||||||
$self->volumes->[$volume_idx]->set_selected(1)
|
$self->volumes->[$volume_idx]->set_selected(1)
|
||||||
if $volume_idx != -1;
|
if $volume_idx != -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue