mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Revert "Dereference the Wx object id when removing an object in the plater."
This reverts commit 4979029cd2.
This commit is contained in:
1 parent
4979029cd2
commit
7b0d4cb4e1
1 file changed
+1
-3
@@ -323,10 +323,8 @@ sub object_loaded {
|
|||||||
|
|
||||||
sub remove {
|
sub remove {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($obj) = @_;
|
my ($obj_idx) = @_;
|
||||||
|
|
||||||
my $obj_idx = $obj->GetInt();
|
|
||||||
|
|
||||||
if (defined $obj_idx) {
|
if (defined $obj_idx) {
|
||||||
$self->{print}->copies->[$obj_idx][$_] = undef
|
$self->{print}->copies->[$obj_idx][$_] = undef
|
||||||
for 0 .. $#{ $self->{print}->copies->[$obj_idx] };
|
for 0 .. $#{ $self->{print}->copies->[$obj_idx] };
|
||||||
|
|||||||
Reference in new issue
Block a user