mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 07:09:05 +08:00
Fixed regression causing the plater Split command not to remove objects from the model. #2380
This commit is contained in:
parent
e4dd5cf82f
commit
076d82d8d6
@ -767,7 +767,10 @@ sub split_object {
|
||||
my $self = shift;
|
||||
|
||||
my ($obj_idx, $current_object) = $self->selected_object;
|
||||
my $current_model_object = $self->{model}->objects->[$obj_idx];
|
||||
|
||||
# we clone model object because split_object() adds the split volumes
|
||||
# into the same model object, thus causing duplicated when we call load_model_objects()
|
||||
my $current_model_object = $self->{model}->clone->objects->[$obj_idx];
|
||||
|
||||
if (@{$current_model_object->volumes} > 1) {
|
||||
Slic3r::GUI::warning_catcher($self)->("The selected object can't be split because it contains more than one volume/material.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user