mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fixed crash when reducing objects from 2D/preview/layers tabs
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user