From 3d8b1408ecca0dad8ecf8889d5fc033f7bf9f281 Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Fri, 21 Apr 2023 17:50:50 +0800 Subject: [PATCH] FIX: [STUDIO-2349] Large model causing hot bed display issues Change-Id: I8efbfe75bbfa50059ce9f124a8c4b308d0fddac0 --- src/slic3r/GUI/Plater.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 11f7187a7b..3854d76882 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3734,17 +3734,15 @@ std::vector Plater::priv::load_model_objects(const ModelObjectPtrs& mode const double max_ratio = std::max(ratio(0), ratio(1)); if (max_ratio > 10000) { MessageDialog dlg(q, _L("Your object appears to be too large, Do you want to scale it down to fit the heat bed automatically?"), _L("Object too large"), - wxICON_QUESTION | wxYES_NO); + wxICON_QUESTION | wxYES); int answer = dlg.ShowModal(); - if (answer == wxID_YES) { - // the size of the object is too big -> this could lead to overflow when moving to clipper coordinates, - // so scale down the mesh - object->scale_mesh_after_creation(1. / max_ratio); - object->origin_translation = Vec3d::Zero(); - object->center_around_origin(); - scaled_down = true; - break; - } + // the size of the object is too big -> this could lead to overflow when moving to clipper coordinates, + // so scale down the mesh + object->scale_mesh_after_creation(1. / max_ratio); + object->origin_translation = Vec3d::Zero(); + object->center_around_origin(); + scaled_down = true; + break; } else if (max_ratio > 10) { MessageDialog dlg(q, _L("Your object appears to be too large, Do you want to scale it down to fit the heat bed automatically?"), _L("Object too large"),