mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 21:15:56 +08:00
Revert "Dereference the Wx object id when removing an object in the plater."
This reverts commit 4979029cd285ec30126dbfe84d16ce22465a471a.
This commit is contained in:
parent
4979029cd2
commit
7b0d4cb4e1
@ -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] };
|
||||
|
Loading…
x
Reference in New Issue
Block a user