mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX: model moves when adding negative volume
Change-Id: I49fdfa8324751874203bde42a692c3babc901623 (cherry picked from commit 550286d7314cc20da5ea590e3dd19772daceda16)
This commit is contained in:
parent
e5c3127517
commit
a4e89ab1f5
1 changed files with 1 additions and 3 deletions
|
@ -5052,9 +5052,7 @@ void ObjectList::apply_object_instance_transfrom_to_all_volumes(ModelObject *mod
|
|||
model_object->ensure_on_bed();
|
||||
// keep new instance center the same as the original center
|
||||
model_object->translate(-original_instance_center);
|
||||
model_object->origin_translation += original_instance_center;
|
||||
model_object->translate_instances(model_object->origin_translation);
|
||||
model_object->origin_translation = Vec3d::Zero();
|
||||
model_object->translate_instances(original_instance_center);
|
||||
|
||||
// update the cache data in selection to keep the data of ModelVolume and GLVolume are consistent
|
||||
wxGetApp().plater()->update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue