Skip to content

Commit

Permalink
Fixed regression causing the plater Split command not to remove objec…
Browse files Browse the repository at this point in the history
…ts from the model. #2380
  • Loading branch information
alranel committed Nov 30, 2014
1 parent e4dd5cf commit 076d82d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Slic3r/GUI/Plater.pm
Expand Up @@ -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.");
Expand Down

0 comments on commit 076d82d

Please sign in to comment.