From 7b0d4cb4e1db18a0f67afb815d14e0dac6f315ca Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 11 Aug 2012 16:00:41 +0200 Subject: [PATCH] Revert "Dereference the Wx object id when removing an object in the plater." This reverts commit 4979029cd285ec30126dbfe84d16ce22465a471a. --- lib/Slic3r/GUI/Plater.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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] };