SPE-2600: Do not move objects after split (#13661)

This commit is contained in:
Lukas Matena 2024-12-10 12:38:38 +01:00
parent 5934f8d1e7
commit 3fb8b71627

View File

@ -2055,7 +2055,11 @@ void Plater::priv::split_object()
// load all model objects at once, otherwise the plate would be rearranged after each one
// causing original positions not to be kept
// Note that load_model_objects shifts the object to the active bed. To prevent it,
// raise a flag as if a project was being loaded.
s_multiple_beds.set_loading_project_flag(true);
std::vector<size_t> idxs = load_model_objects(new_objects);
s_multiple_beds.set_loading_project_flag(false);
// clear previosli selection
get_selection().clear();