From f146cd022476dc650ccdbdfb3e3faa6ce8fbf645 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 23 May 2023 20:38:18 +0200 Subject: [PATCH] Do not center volume when create new --- src/libslic3r/Emboss.cpp | 4 ++-- src/slic3r/GUI/Jobs/EmbossJob.cpp | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index dd156da8ad..bfd377fa02 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -1289,7 +1289,7 @@ namespace { /// /// Align expolygons by type /// -/// Type of alignement +/// Type of alignment /// shapes to align /// Same size as shape for align per line(detect of end line - '\n') void align_shape(FontProp::Align type, std::vector &shape, const std::wstring &text); @@ -1968,7 +1968,7 @@ int32_t get_align_x_offset(FontProp::Align type, const BoundingBox &shape_bb, co void align_shape(FontProp::Align type, std::vector &shapes, const std::wstring &text) { if (type == FontProp::Align::first_line_left) - return; // no alignement + return; // no alignment BoundingBox shape_bb; for (const ExPolygons& shape: shapes) diff --git a/src/slic3r/GUI/Jobs/EmbossJob.cpp b/src/slic3r/GUI/Jobs/EmbossJob.cpp index 4d14008893..368d494372 100644 --- a/src/slic3r/GUI/Jobs/EmbossJob.cpp +++ b/src/slic3r/GUI/Jobs/EmbossJob.cpp @@ -138,9 +138,6 @@ void CreateVolumeJob::process(Ctl &ctl) { if (!priv::check(m_input)) throw std::runtime_error("Bad input data for EmbossCreateVolumeJob."); auto was_canceled = [&ctl]()->bool { return ctl.was_canceled(); }; m_result = priv::create_mesh(m_input, was_canceled, ctl); - // center result - Vec3f c = m_result.bounding_box().center().cast(); - if (!c.isApprox(Vec3f::Zero())) m_result.translate(-c); } void CreateVolumeJob::finalize(bool canceled, std::exception_ptr &eptr) {