From 5581830ab82366c087aaf01d89fdb8619d7fd489 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 25 Jan 2019 13:30:01 +0100 Subject: [PATCH] Fixed import of objects greater than print bed (range (5 < 10000) times) --- src/slic3r/GUI/Plater.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 1f565ca70..3d759229f 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1483,10 +1483,11 @@ std::vector Plater::priv::load_model_objects(const ModelObjectPtrs &mode object->center_around_origin(); scaled_down = true; } else if (max_ratio > 5) { - const Vec3d inverse = ratio.cwiseInverse(); - for (ModelInstance *instance : model_object->instances) { + const Vec3d inverse = 1.0 / max_ratio * Vec3d::Ones(); + for (ModelInstance *instance : object->instances) { instance->set_scaling_factor(inverse); } + scaled_down = true; } object->ensure_on_bed();