mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
FIX: modify the position of flow ratio
Change-Id: I570f02688363e4e03b6b6e4a4c23e2995bd3c5a2
This commit is contained in:
parent
411d02f22e
commit
d7ce897858
1 changed files with 3 additions and 1 deletions
|
@ -740,9 +740,11 @@ void CalibUtils::process_and_store_3mf(Model* model, const DynamicPrintConfig& f
|
||||||
ModelInstance *instance = model->objects[0]->instances[0];
|
ModelInstance *instance = model->objects[0]->instances[0];
|
||||||
instance->set_offset(instance->get_offset() + Vec3d(current_width / 2, current_depth / 2, 0));
|
instance->set_offset(instance->get_offset() + Vec3d(current_width / 2, current_depth / 2, 0));
|
||||||
} else {
|
} else {
|
||||||
|
BoundingBoxf3 bbox = model->bounding_box();
|
||||||
|
Vec3d bbox_center = bbox.center();
|
||||||
for (auto object : model->objects) {
|
for (auto object : model->objects) {
|
||||||
ModelInstance *instance = object->instances[0];
|
ModelInstance *instance = object->instances[0];
|
||||||
instance->set_offset(instance->get_offset() + Vec3d(100, 100, 0));
|
instance->set_offset(instance->get_offset() + Vec3d(current_width / 2 - bbox_center.x(), current_depth / 2 - bbox_center.y(), 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue