FIX: [6469] popup dialog too mach when reload object

Jira: 6469

Change-Id: I4097e3a3b018c7a676fea93bf63f8f778bb3148b
This commit is contained in:
maosheng.wei 2024-04-30 14:35:17 +08:00 committed by Lane.Wei
parent 38f6d5b4f5
commit dc0df83393
1 changed files with 2 additions and 1 deletions

View File

@ -5885,7 +5885,8 @@ void Plater::priv::reload_from_disk()
for (auto [src, dest] : replace_paths) {
for (auto [obj_idx, vol_idx] : selected_volumes) {
if (boost::algorithm::iequals(model.objects[obj_idx]->volumes[vol_idx]->source.input_file, src.string()))
replace_volume_with_stl(obj_idx, vol_idx, dest, "");
// When an error occurs, either the dest parsing error occurs, or the number of objects in the dest is greater than 1 and cannot be replaced, and cannot be replaced in this loop.
if (!replace_volume_with_stl(obj_idx, vol_idx, dest, "")) break;
}
}
#else