From 31fbdd29e7eebb9b12c8204bec3c82f1598367e1 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Tue, 18 Mar 2025 22:30:01 +0800 Subject: [PATCH] FIX: CLI: use the correct wipe tower width after estimation jira: STUDIO-10900 Change-Id: Id6ea3c3a7e0c37001a5cc118eea7459ffeb48469 --- src/BambuStudio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BambuStudio.cpp b/src/BambuStudio.cpp index 455c51c40..a38d22e83 100644 --- a/src/BambuStudio.cpp +++ b/src/BambuStudio.cpp @@ -3753,6 +3753,7 @@ int CLI::run(int argc, char **argv) std::vector wipe_volume = volume_option->values; Vec3d wipe_tower_size = plate->estimate_wipe_tower_size(print_config, plate_obj_size_info.wipe_width, get_max_element(wipe_volume), new_extruder_count, filaments_cnt); + plate_obj_size_info.wipe_width = wipe_tower_size(0); plate_obj_size_info.wipe_depth = wipe_tower_size(1); Vec3d origin = plate->get_origin(); @@ -4925,6 +4926,7 @@ int CLI::run(int argc, char **argv) if (wp_brim_width < 0) wp_brim_width = WipeTower::get_auto_brim_by_height((float) wipe_tower_size.z()); BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: wp_brim_width %1%")%wp_brim_width; } + w = wipe_tower_size(0); BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("arrange wipe_tower: x=%1%, y=%2%, width=%3%, depth=%4%, angle=%5%, prime_volume=%6%, filaments_cnt=%7%, layer_height=%8%, plate_width=%9%, plate_depth=%10%") % x % y % w % depth % a % get_max_element(v) % filaments_cnt % layer_height % plate_width % plate_depth;