From d7ce8978586109473d368f9a80ce8021f0679457 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Wed, 5 Jul 2023 21:28:50 +0800 Subject: [PATCH] FIX: modify the position of flow ratio Change-Id: I570f02688363e4e03b6b6e4a4c23e2995bd3c5a2 --- src/slic3r/Utils/CalibUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/Utils/CalibUtils.cpp b/src/slic3r/Utils/CalibUtils.cpp index a280529cf..6eb8e2834 100644 --- a/src/slic3r/Utils/CalibUtils.cpp +++ b/src/slic3r/Utils/CalibUtils.cpp @@ -740,9 +740,11 @@ void CalibUtils::process_and_store_3mf(Model* model, const DynamicPrintConfig& f ModelInstance *instance = model->objects[0]->instances[0]; instance->set_offset(instance->get_offset() + Vec3d(current_width / 2, current_depth / 2, 0)); } else { + BoundingBoxf3 bbox = model->bounding_box(); + Vec3d bbox_center = bbox.center(); for (auto object : model->objects) { 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)); } }