diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index bbd6f587be..ee7e536905 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -323,10 +323,8 @@ sub object_loaded { sub remove { my $self = shift; - my ($obj) = @_; + my ($obj_idx) = @_; - my $obj_idx = $obj->GetInt(); - if (defined $obj_idx) { $self->{print}->copies->[$obj_idx][$_] = undef for 0 .. $#{ $self->{print}->copies->[$obj_idx] };