mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 22:20:02 +02:00
Save the vector used for aligning object volumes to origin and apply it to additional parts added from the object part panel in order to make them coincide
This commit is contained in:
1 parent
017158c877
commit
45559f87f3
3 files changed
+7
-2
No files matched your search
@@ -207,6 +207,9 @@ sub on_btn_load {
|
||||
$new_volume->material_id($material_name);
|
||||
}
|
||||
|
||||
# apply the same translation we applied to the object
|
||||
$new_volume->mesh->translate(@{$self->{model_object}->origin_translation}, 0);
|
||||
|
||||
# set a default extruder value, since user can't add it manually
|
||||
my $material = $self->{model_object}->model->materials->{$new_volume->material_id};
|
||||
$material->config->set_ifndef('extruder', 1);
|
||||
|
||||
Reference in new issue
Block a user