mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 02:39:04 +08:00
Splitting unsplittable objects now results in a no-op
This commit is contained in:
parent
39f0c2f822
commit
9398a1f6c2
@ -312,7 +312,9 @@ sub split_object {
|
||||
my $mesh = $current_object->mesh->clone;
|
||||
$mesh->scale($Slic3r::scaling_factor);
|
||||
|
||||
foreach my $mesh ($mesh->split_mesh) {
|
||||
my @new_meshes = $mesh->split_mesh;
|
||||
return if @new_meshes == 1;
|
||||
foreach my $mesh (@new_meshes) {
|
||||
my $object = $self->{print}->add_object_from_mesh($mesh);
|
||||
$object->input_file($current_object->input_file);
|
||||
$self->object_loaded($#{$self->{print}->objects}, no_arrange => 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user