mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Fix regression in Split from GUI. Might be related to #1998
This commit is contained in:
parent
147385203c
commit
e62672f787
1 changed files with 6 additions and 6 deletions
|
@ -628,12 +628,6 @@ sub split_object {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove the original object before spawning the object_loaded event, otherwise
|
|
||||||
# we'll pass the wrong $obj_idx to it (which won't be recognized after the
|
|
||||||
# thumbnail thread returns)
|
|
||||||
$self->remove($obj_idx);
|
|
||||||
$current_object = $obj_idx = undef;
|
|
||||||
|
|
||||||
# create a bogus Model object, we only need to instantiate the new Model::Object objects
|
# create a bogus Model object, we only need to instantiate the new Model::Object objects
|
||||||
my $new_model = Slic3r::Model->new;
|
my $new_model = Slic3r::Model->new;
|
||||||
|
|
||||||
|
@ -667,6 +661,12 @@ sub split_object {
|
||||||
push @model_objects, $model_object;
|
push @model_objects, $model_object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# remove the original object before spawning the object_loaded event, otherwise
|
||||||
|
# we'll pass the wrong $obj_idx to it (which won't be recognized after the
|
||||||
|
# thumbnail thread returns)
|
||||||
|
$self->remove($obj_idx);
|
||||||
|
$current_object = $obj_idx = undef;
|
||||||
|
|
||||||
# load all model objects at once, otherwise the plate would be rearranged after each one
|
# load all model objects at once, otherwise the plate would be rearranged after each one
|
||||||
# causing original positions not to be kept
|
# causing original positions not to be kept
|
||||||
$self->load_model_objects(@model_objects);
|
$self->load_model_objects(@model_objects);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue