1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-15 08:44:26 +00:00

Splitting unsplittable objects now results in a no-op

This commit is contained in:
Alessandro Ranellucci
2012-05-04 10:17:36 +02:00
parent 39f0c2f822
commit 9398a1f6c2
+3 -1
View File
@@ -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);