From 91cdfbf2863a0e11065e2008251d09466fccbbb9 Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Wed, 16 Aug 2023 19:57:54 +0800 Subject: [PATCH] FIX: [github #2209 #2246] reload from disk not work Github: #2209 #2246 Change-Id: I12ab1e08eaeff334315136914f0c20cc2c78fd98 --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index d490d2022..6e49d3283 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4852,7 +4852,7 @@ bool Plater::priv::replace_volume_with_stl(int object_idx, int volume_idx, const Model new_model; try { - new_model = Model::read_from_file(path, nullptr, nullptr, LoadStrategy::AddDefaultInstances); + new_model = Model::read_from_file(path, nullptr, nullptr, LoadStrategy::AddDefaultInstances | LoadStrategy::LoadModel); for (ModelObject* model_object : new_model.objects) { model_object->center_around_origin(); model_object->ensure_on_bed();