mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:44:27 +08:00
Dereference the Wx object id when removing an object in the plater.
This commit is contained in:
parent
0833b4e021
commit
4979029cd2
@ -323,8 +323,10 @@ sub object_loaded {
|
||||
|
||||
sub remove {
|
||||
my $self = shift;
|
||||
my ($obj_idx) = @_;
|
||||
my ($obj) = @_;
|
||||
|
||||
my $obj_idx = $obj->GetInt();
|
||||
|
||||
if (defined $obj_idx) {
|
||||
$self->{print}->copies->[$obj_idx][$_] = undef
|
||||
for 0 .. $#{ $self->{print}->copies->[$obj_idx] };
|
||||
|
Loading…
x
Reference in New Issue
Block a user