mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-10 03:22:25 +00:00
Fixed crash when reducing objects from 2D/preview/layers tabs
This commit is contained in:
1 parent
af4e0308ae
commit
dd4669d1a0
1 file changed
+3
@@ -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