FIX: [github #2209 #2246] reload from disk not work

Github: #2209 #2246

Change-Id: I12ab1e08eaeff334315136914f0c20cc2c78fd98
This commit is contained in:
maosheng.wei 2023-08-16 19:57:54 +08:00 committed by Lane.Wei
parent 342b8d7338
commit 91cdfbf286
1 changed files with 1 additions and 1 deletions

View File

@ -4852,7 +4852,7 @@ bool Plater::priv::replace_volume_with_stl(int object_idx, int volume_idx, const
Model new_model; Model new_model;
try { 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) { for (ModelObject* model_object : new_model.objects) {
model_object->center_around_origin(); model_object->center_around_origin();
model_object->ensure_on_bed(); model_object->ensure_on_bed();